OKTA sdk oktaoidc.signout method fails when app is inactive for sometime and user tries to logout by calling the signout method. Is this an issue with this sdk version. I am using SDK version 3.11.1.
Are you able to provide the GitHub link to the SDK you’re using? My guess is that the id_token has expired so the call to the /logout
endpoint might be failing.
This is the version in github i am using
Will the id token expire in short time, like i am getting this issue in a 3hr of app inactivity. When i try to logout the app get into the failure block of oktaoidc.signout method. Not sure what is happening on the okta side. Appreciate your help
@warren can you check if this version is still good to use. Appreciate your help
The id token has a default lifetime of 1 hour. Maybe you can try signOut
with allOptions
.
@warren hope you are referring to this
var options: OktaSignOutOptions = .allOptions
options.insert(.allOptions)
@warren this is failing for me in the sdk code
// Access Token
if options.contains(.revokeAccessToken) {
progressHandler(.revokeAccessToken)
authStateManager.revoke(authStateManager.accessToken) { (success, _) in
notFinishedOptions.remove(.revokeAccessToken)
if !success {
failedOptions.insert(.revokeAccessToken)
}
self.signOut(with: notFinishedOptions,
failedOptions: failedOptions,
progressHandler: progressHandler,
completionHandler: completionHandler)
}
return
}