Learn how to embed the Featurebase board in your mobile app and automatically log in users with Single Sign-On (SSO).
Written By Bruno from Featurebase
Last updated 16 days ago
π¨βπ» You'll need to write custom code for the setup process. If you're uncomfortable with this, share this guide with a technical team member who can assist.
Create a WebView
Start by copying your feedback boards url and appending /widget to it:
Examplehttps://yourorg.featurebase.app/widget
Then proceed to create a WebView with that URL.
Automatically log in users with SSO
By passing an additional ?jwtToken
parameter to your WebView URL, you can automatically log users in.
This requires you to create a JWT token server side and pass it into the URL.
Hereβs a quick rundown of what you need to do:
Generate a JWT by following the JWT Creation Guide. Store it on your server and make sure to not share it with anyone!
When a user wants to use the widget, send a request to your server to generate a JWT token.
On your server, generate a JWT token with your customer data using the example below.
Finally, use this JWT token in the WebView url for authentication:
https://yourorg.featurebase.app/widget?jwtToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...