magiclabs / magic-admin-js

Magic admin Node.js SDK makes it easy to leverage Decentralized ID tokens to protect routes and restricted resources for your application.
https://docs.magic.link/admin-sdk/node-js
MIT License
77 stars 33 forks source link

Add NodeJS Examples #52

Closed sheksushant closed 1 year ago

sheksushant commented 3 years ago

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.

miguel-a-calles-mba commented 2 years ago

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

am-hernandez commented 1 year ago

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.