YourGPT Custom SSO (Single Sign-On) Integration Guide
This integration provides a way for site owners to authenticate their users and interact with YourGPT through a secure API using a custom SSO flow. The process involves generating and managing JWT tokens, validating them via YourGPT, and establishing a secure connection for user authentication.
How to Set Up
- Log in or sign up for YourGPT.
- Generate an
SSO Client ID
andSSO Secret Key
for your organization. - Generate a JWT token using your
SSO Secret Key
as shown in the code below :
- After generating the JWT token, call this API :
- If all credentials and fields are correct, the user will be redirected to YourGPT and logged in successfully.