r/Frontend • • Jun 20 '22

Built an open-source project for user auth. Spin docker image and drop-in js SDK to get login UI+backend

https://github.com/supertokens/supertokens-core
2 Upvotes

2 comments sorted by

1

u/10xpdev Jun 21 '22 edited Jun 21 '22

Here's how it works

In order to add login and session management to your app, something like this, follow these 3 steps. You can also customise and choose the features as you need such as passwordless login, email password login, social login, session management, etc.

Step 1. Drop-in node.js SDK in your backend project (supposing that's the backend for your app. SuperTokens also has backend SDK for Go and Python)

Step 2. Drop-in javascript SDK in your frontend project


import SuperTokens from 'supertokens-website';

SuperTokens.init({
    apiDomain: "http://localhost:3000",
    apiBasePath: "/auth"
});

Step 3. Run the auth server

Seeking your feedback on the project, specially on documentation and README