Skip to main content

SSO authorization

In this short documentation, you’ll learn how to generate a learner session using the API, retrieve an access token, construct an SSO login link, and integrate this flow into your own platform for smooth user authentication.

Updated this week

1. Create a new session by the learner's email and receive the access token.

Please, use your api-key to make a request. The API key can be found here →

POST https://api.educate-me.co/students/{email}/sessions 

Body:
{
expireInDays: number // # of days the token will be active.

}

This method returns the following interface:

{ 
accessToken: string
expiresIn: number // in seconds
id: string // id of a learner
}

2. Create an access link to the platform interface with the following route:

{your_domain}/auth?accessToken={access_token_here}

An example of such a link:

Did this answer your question?