I am trying to use dmfs/oauth2-essentials
for oauth2 in an application. The problem is the refresh token. I am able to store the token string and refresh token string in AccountManager. Refresh token using userdata bundle. User first logins with ResourceOwnerPasswordGrant
and receives a token with refresh token.
The problem is that Bundle accepts just primitive things like strings to be stored. But the dmfs/oauth2-essentials
require the OAuth2AccessToken
object when using TokenRefreshGrant()
Is there a way to use the refresh token string directly? am I missing something?
Thanks!