Please I need to help me with the following issue:
I get current credentials using Auth.currentUserCredentials() after calling Auth.currentAuthenticatedUser() and it refreshes token every time and that token remains valid for one hour and then it expires and gives me this error NotAuthorizedException: Invalid login token. Token expired how can I get a new token when it expires, thanks.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Please I need to help me with the following issue:
I get current credentials using
Auth.currentUserCredentials()
after callingAuth.currentAuthenticatedUser()
and it refreshes token every time and that token remains valid for one hour and then it expires and gives me this errorNotAuthorizedException: Invalid login token. Token expired
how can I get a new token when it expires, thanks.