summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller/Traewelling.pm
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-08-09 19:28:36 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-08-09 19:28:36 +0200
commit8ec002f0415665bb3a575d6c44b6fd7a1b8a1eb8 (patch)
tree9890e5aba842ebfb8c2280136fa28ebdc62f338f /lib/Travelynx/Controller/Traewelling.pm
parent3ec9970f01b7641eaf8787905b423aaa41ea71bc (diff)
Store traewelling refresh token in database1.34.3
Diffstat (limited to 'lib/Travelynx/Controller/Traewelling.pm')
-rw-r--r--lib/Travelynx/Controller/Traewelling.pm7
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 {