If your users already have an account in your app, you can use Single Sign-On (SSO) to let them log into Featurebase with it.
This process involves setting up a dedicated page on your website to handle SSO authentication, creating and managing JWT tokens, and finally authenticating your users with Featurebase.
Here's a summary of the authentication flow:
https://yourwebsite.com/sso/featurebase?return_to=https://yourorg.featurebase.app/roadmap
https://yourorg.featurebase.app/api/v1/auth/access/jwt?jwt=payload&return_to=https://yourorg.featurebase.app/roadmap
Set up a page on your website that will authenticate the user on your end (e.g https://yourdomain.com/sso/featurebase
)
Next, navigate to your Featurebase Dashboard → Settings → SSO, and enter the URL of the page you created in the SSO URL field. This is where Featurebase will redirect users who wish to log in through your app's account.
When a user arrives on your SSO page, authenticate them using your app's authentication system and create a JWT Token for them using the next step in this guide. 👇
xxxxxx
Install required packages
Generate the JWT token
Validate your JWT Token
Paste one of your generated tokens here to check if you did everything correctly.
You must be logged in to check if your token is valid.
Redirect the user to the Featurebase JWT endpoint with the JWT and return_to URL.https://yourorg.featurebase.app/api/v1/auth/access/jwt?jwt=payload&return_to=https://yourorg.featurebase.app/roadmap