Overview
All the LikeMinds APIs require authentication. Below are the steps outlining how authentication works.
Getting Started
To begin, retrieve your LikeMinds API key from the dashboard. This key uniquely identifies your project on the LikeMinds platform and is required for the SDK Initiate API.
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