Hi all, I'm using GoogleSignInClient for logging t...
# android
d
Hi all, I'm using GoogleSignInClient for logging the user into my app and I have a backend api to verify the TokenId (Jwt). For subsequent request to my backend api, I uses the same TokenId (Jwt) for authentication. But the token only valid for an hour, what's the recommended way to refresh the token? Do I do a .silentSignIn() to get a new token or should the backend api retrieve a new token and passes it back to the android app?
r
You could use work manager to refresh in background
d
That's a good idea! Gonna try that out thanks!