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 Sep 9, 2022. It is now read-only.
In the case the Play-store in not present, the fallback is used, no problem there.
However I cannot figure out how to switch or logout user.
The flow:
Authenticate the user A: chrome.identity.getAuthToken -> Ok you can enter you user credentials
logout: chrome.identity.removeCachedAuthToken -> seams remove the token.
Launch the authentication flow again to change the user: chrome.identity.getAuthToken -> Fail : Same user token get retrieved without prompt the user credentials
Edit: I just found the following lines in the plugin code:
if ("removeCachedAuthToken".equals(action)) {
callDetails.token = args.getString(0);
callDetails.signOut = args.getBoolean(1);
..
and
exec(callback, null, 'ChromeIdentity', 'removeCachedAuthToken', [details.token, details.signOut]);
Hello there,
First thanks for the plugin!
In the case the Play-store in not present, the fallback is used, no problem there.
However I cannot figure out how to switch or logout user.
The flow:
Edit: I just found the following lines in the plugin code:
if ("removeCachedAuthToken".equals(action)) {
callDetails.token = args.getString(0);
callDetails.signOut = args.getBoolean(1);
..
and
exec(callback, null, 'ChromeIdentity', 'removeCachedAuthToken', [details.token, details.signOut]);
I am going to test details.signOut..
Please add a line in your doc about it.. as the chrome doc don't mentioned it.
https://developer.chrome.com/apps/identity#method-removeCachedAuthToken
Cheers!
The text was updated successfully, but these errors were encountered: