I’ve got an iOS app with the sdk.
I use the WebAuthentication to log in (
webAuth.signIn), when successfully log in, then I store the token with
I’ve set up the current expiration times:
I’ve double checked that the Token object returned in the WebAuthentication (
webAuth.signIn method) contains an expiration time of 360 seconds.
But if after one minute of being logged in if I try to refresh the token, and I call
Credential.default, I will get null so I won’t be able to do
Am I doing something wrong?
Update: I’ve found that if I do
Credential.with(id: idForToken) it would work, but that means I would need to save the tokenId in a persistent way so I can get a Credentials object even if the user closes the app.
Is this the only way?