Get token for user

Get
https://rest.edapp.com/v1/users/{userId}/token

Description

EdApp learners can access the application on the web and natively through iOS and Android.

This endpoint returns a token that can be used to authenticate a user on the EdApp learners’ platform. Directing a learner to - https://web.edapp.com?token={token} – will authenticate the learner with the token and successfully log them into the learners’ app. This allows you to build smooth integrations with other platforms. The link will direct them to the native app if they have it installed or to the web if they do not. Other possible use cases are direct linking to lessons and courses within the app.

https://web.edapp.com/#course/{courseId}?token={token} https://web.edapp.com/#lesson/{lessonId}?token={token}

 

Parameters

Field Description  Data Type

userId

ID of the user

string

 

Response

Field Description Data Type 

id

ID of the user

string
token 

the temporary token that can be used for direct links

string

 

Example

{
"id": "51888e57c32316741c50cb4e",
"token": "00453ac4-bc89-401a-ad9f-1746dabef112"
}