Closed newdev8 closed 3 years ago
So In my app, the user logs in through a WebView and then, it passes the tokens (IdToken, AccessToken and RefreshToken) and the username to the client. As seen In this plugin, on login, it writes some key values:
WebView
CognitoIdentityServiceProvider.[appId].[username].idToken CognitoIdentityServiceProvider.[appId].[username].accessToken CognitoIdentityServiceProvider.[appId].[username].refreshToken CognitoIdentityServiceProvider.[appId].[username].clockDrift CognitoIdentityServiceProvider.[appId].LastAuthUser
I managed to save those values manually, but when calling _userService.checkAuthenticated() the plugin returns false.
_userService.checkAuthenticated()
false
Is there any way to manually input the tokens? Thanks in advance.
It isn't currently supported. You are welcome to create a method that will manage the outside tokens and create a PR.
So In my app, the user logs in through a
WebView
and then, it passes the tokens (IdToken, AccessToken and RefreshToken) and the username to the client. As seen In this plugin, on login, it writes some key values:I managed to save those values manually, but when calling
_userService.checkAuthenticated()
the plugin returnsfalse
.Is there any way to manually input the tokens? Thanks in advance.