magic-admin-js icon indicating copy to clipboard operation
magic-admin-js copied to clipboard

Add NodeJS Examples

Open sheksushant opened this issue 4 years ago • 1 comments

What's the point of logging out if our users can't login? https://docs.magic.link/admin-sdk/node/examples/log-out-a-users-magic-session

Hope Login/SignUp Examples will be added soon.

sheksushant avatar Feb 01 '21 18:02 sheksushant

This issue might be addressed. https://magic.link/docs/api-reference/server-side-sdks/node

miguel-a-calles-mba avatar Apr 13 '22 17:04 miguel-a-calles-mba

Hi @sheksushant , thank you for the question. I understand it is long overdue, but I wanted to close this issue with an answer. Users log in via the client-side SDKs and not the server-side SDKs (Admin SDK). The Magic Admin SDK does provide the ability to log a user out of all sessions, which is very useful for security reasons. Logins occur client-side using Magic's iframe to provide a secure connection for the user and AWS. You can dive deeper into the auth flow by checking out our security docs.

am-hernandez avatar Nov 29 '22 22:11 am-hernandez