node-ddp-client icon indicating copy to clipboard operation
node-ddp-client copied to clipboard

Login flow

Open gazzer82 opened this issue 10 years ago • 2 comments

Hi, implementation question!

I have the client logging correctly and authenticating fine, but i'm not sure of how to manage the session. I can see that a token is returned during the login process, but i don't know what to do with it.

Is there any inbuilt token management, or do i need to store the token between sessions and refresh it when needed? How do i pass the token back to the application on launch?

Thanks

Gareth

gazzer82 avatar Jul 10 '15 22:07 gazzer82

Currently session management is not implemented. Definitely needed though!

If you store a session token you can call the login method with parameters {'resume': yourToken}

hharnisc avatar Jul 15 '15 04:07 hharnisc

You would have to do this yourself, e.g. store it in localStorage like Meteor does.

dobesv avatar Aug 29 '18 17:08 dobesv