mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 03:18:06 +00:00
Fixed expiration time in bearer tokens
This commit is contained in:
parent
d8f0338f7c
commit
552e158979
1 changed files with 2 additions and 2 deletions
|
|
@ -309,9 +309,9 @@ class SingleSignOnViewModel : ViewModel() {
|
|||
onErrorEvent.postValue(Event("Invalid access token expiration time"))
|
||||
} else {
|
||||
val accessToken =
|
||||
Factory.instance().createBearerToken(authState.accessToken, expire)
|
||||
Factory.instance().createBearerToken(authState.accessToken, expire / 1000) // Linphone timestamps are in seconds
|
||||
val refreshToken =
|
||||
Factory.instance().createBearerToken(authState.refreshToken, expire)
|
||||
Factory.instance().createBearerToken(authState.refreshToken, expire / 1000) // Linphone timestamps are in seconds
|
||||
|
||||
val authInfo = coreContext.bearerAuthInfoPendingPasswordUpdate
|
||||
if (authInfo == null) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue