-
Notifications
You must be signed in to change notification settings - Fork 52
How to switch between accounts ? #124
Comments
probably you can try oneDriveClient.getAuthenticator().logout(); to logout the current account you are using? |
@daboxu If I do this I can get a new client but if I want to reconnect to the precedent I have to redo a login with the authorization. How do I reconnect with the the obtained driveId (or accestoken?) and save in a file for example, without going back through the process? |
that's a little bit tricky, if an access token works for your case, you can get it from the authenticator. oneDriveClient.getAuthenticator().getAccountInfo().getAccessToken(); The MSA Authenticator we provided for OneDriveSDK is not intended for handling multiple sessions of user due to the underlying LiveAuthClient. So probably you can implements your own IAuthenticator which delegate the auth login work to MSAAuthenticator while store the access tokens by yourself? And welcome to provide this feedback to the new Graph SDK and Graph Authenticator |
Yes i can get the acces tokens but i don't find the method to build a client with it... I don't understand why it 's so tricky to manage multiple session with this sdk. I will search with MSA Authenticator ... |
hi, were you able to get it working or find a workaround for this? |
@huntext17 |
Thank you for reaching out and for your patience. This SDK is being officially deprecated. See #172 for more information |
I can not find a way to create multiple accounts and pass from one to the other. The code that i use to create one Account in my app:
But I can not renew the operation to create and register another account. How can I access the microsoft login page again?
The text was updated successfully, but these errors were encountered: