TF-2384 Handle refresh token when token expired in NSE
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit c8a39bb42792770c001ac90d6301d53126225d95)
This commit is contained in:
@@ -48,4 +48,13 @@ class KeychainController: KeychainControllerDelegate {
|
||||
}
|
||||
} catch {}
|
||||
}
|
||||
|
||||
func updateTokenOidc(accountId: String, newTokenOidc: TokenOidc) {
|
||||
do {
|
||||
if let sharingSession = retrieveSharingSessionFromKeychain(accountId: accountId) {
|
||||
let newSharingSession = sharingSession.updateTokenOidc(newTokenOidc: newTokenOidc)
|
||||
try keychain.set(newSharingSession.toJson() ?? "", key: accountId)
|
||||
}
|
||||
} catch {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user