hello.js icon indicating copy to clipboard operation
hello.js copied to clipboard

[QUESTION] Provide token from outside

Open georg-schwarz opened this issue 6 years ago • 1 comments

Hey there,

I'd like to request if there is any possibility to provide hellojs with an existing token and then let it sync to a valid state.

Further explanation: I'm getting an id_token from some other parts of my web-app and try to update hellojs for this (Google) token. After this point, helloJS should behave like it normally does. The only difference is, that no login is called, but the token is somehow injected.

Thank you very much in advance!

georg-schwarz avatar Nov 28 '17 14:11 georg-schwarz

This is not the best, but the in current version 1.x this is how the auth response is saved in the client...

hello.utils.store('facebook', {access_token:'abc...xyz', ...})

MrSwitch avatar Dec 07 '17 14:12 MrSwitch