Overview
All the LikeMinds APIs require authentication following is the steps how the authentication works.
Getting Started
Retrieve the project LikeMinds API key
from the dashboard, as this will be required for SDK Initiate, it uniquely identifies a project on the LikeMinds platform.
User Data Creation
For each user on the client platform, hit initiate API SDK Initiate to create new user on LikeMinds platform.
Save the response to create mapping from
Customer ID
↔︎LikeMinds access_token & refresh_token
Keep the mapping for following keys for each client side user (these will be required later)
access_token
- access token for user authenticationrefresh_token
- refresh token to generate new access token for the user when existing one expiresuser_unique_id
- corresponding LikeMinds platform unique id of the user
Refresh Token Strategy
Use user's
access_token
generated in previous step asBearer Token
- If LM APIs return
statusCode: 401
, use user'srefresh_token
and hit refresh token API to generate newaccess_token
- If LM APIs return