You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
Hello,
Thank you so much for such a wonderful wrapper. It was really easy to implement.
Issue :
I am storing a token in the keychain on Login. Post login, I redirect the user to the dashboard screen where the token is passed in an API call.
Ex : Keychain: token = "XYZ"
If the token is revoked due to log in on another device, the user gets an error of authentication, here I am removing the token and redirecting user back to login. Keychain: no token item or I can set it to empty string instead of removing.
Now, if I log in again, a new token is generated and saved in the keychain. Keychain: token = "ABC"
Post this, when dashboard API is called, token "XYZ" is passed instead of "ABC"
This happens only in the single lifecycle of the app. If I terminate/exit the app and open again, the token passed in the API is "ABC".
How can I update the existing key in the single lifecycle of the app?
Is this the usual behavior or am I missing anything?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
Thank you so much for such a wonderful wrapper. It was really easy to implement.
Issue :
I am storing a token in the keychain on Login. Post login, I redirect the user to the dashboard screen where the token is passed in an API call.
Ex : Keychain: token = "XYZ"
If the token is revoked due to log in on another device, the user gets an error of authentication, here I am removing the token and redirecting user back to login.
Keychain: no token item or I can set it to empty string instead of removing.
Now, if I log in again, a new token is generated and saved in the keychain.
Keychain: token = "ABC"
Post this, when dashboard API is called, token "XYZ" is passed instead of "ABC"
This happens only in the single lifecycle of the app. If I terminate/exit the app and open again, the token passed in the API is "ABC".
How can I update the existing key in the single lifecycle of the app?
Is this the usual behavior or am I missing anything?
The text was updated successfully, but these errors were encountered: