Skip to content

Commit

Permalink
updating refresh token flow
Browse files Browse the repository at this point in the history
  • Loading branch information
petercort committed Dec 29, 2024
1 parent 0404317 commit 121c51c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shared_library/strava_authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ async function getStravaAuthentication(userData) {

// Update the user record with the new tokens
await UsersTable.update({
stravaAccessToken: newAccessToken,
expiresAt: newExpiresAt,
refreshToken: newRefreshToken,
strava_access_token: newAccessToken,
strava_expires_at: newExpiresAt,
strava_refresh_token: newRefreshToken,
}, {
where: { userId: userData.userId }
});
Expand Down

0 comments on commit 121c51c

Please sign in to comment.