Skip to content

Commit

Permalink
make sure the token can be refreshed
Browse files Browse the repository at this point in the history
  • Loading branch information
DatL4g committed Apr 19, 2024
1 parent 451b45f commit 6cf1dff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class TokenRefreshHandler(
access = newTokens.access_token,
refresh = newTokens.refresh_token,
id = newTokens.id_token,
expires = (newTokens.expires_in ?: newTokens.refresh_token_expires_in)?.let {
expires = (newTokens.refresh_token_expires_in ?: newTokens.expires_in)?.let {
Clock.System.now().epochSeconds + it
}?.toInt()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ class MediumScreenComponent(
access = it.access_token,
refresh = it.refresh_token,
id = it.id_token,
expires = (it.expires_in ?: it.refresh_token_expires_in)?.let { time ->
expires = (it.refresh_token_expires_in ?: it.expires_in)?.let { time ->
Clock.System.now().epochSeconds + time
}?.toInt()
)
Expand Down

0 comments on commit 6cf1dff

Please sign in to comment.