diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-08-09 19:28:36 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-08-09 19:28:36 +0200 |
commit | 8ec002f0415665bb3a575d6c44b6fd7a1b8a1eb8 (patch) | |
tree | 9890e5aba842ebfb8c2280136fa28ebdc62f338f /lib/Travelynx/Controller | |
parent | 3ec9970f01b7641eaf8787905b423aaa41ea71bc (diff) |
Store traewelling refresh token in database1.34.3
Diffstat (limited to 'lib/Travelynx/Controller')
-rw-r--r-- | lib/Travelynx/Controller/Traewelling.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Travelynx/Controller/Traewelling.pm b/lib/Travelynx/Controller/Traewelling.pm index 6df4e52..6c38f7a 100644 --- a/lib/Travelynx/Controller/Traewelling.pm +++ b/lib/Travelynx/Controller/Traewelling.pm @@ -49,9 +49,10 @@ sub oauth { my $uid = $self->current_user->{id}; my $token = $provider->{access_token}; $self->traewelling->link( - uid => $self->current_user->{id}, - token => $provider->{access_token}, - expires_in => $provider->{expires_in}, + uid => $self->current_user->{id}, + token => $provider->{access_token}, + refresh_token => $provider->{refresh_token}, + expires_in => $provider->{expires_in}, ); return $self->traewelling_api->get_user_p( $uid, $token )->then( sub { |