Get user details using token received from Okto.
Code
curl -X GET '${baseUrl}/api/v1/user_from_token'
-H 'x-api-key: YOUR_CLIENT_API_KEY'
-H 'accept: application/json'
-H 'Authorization: Bearer AUTH_TOKEN'
Response
{
"status": "success",
"data": {
"email": "[email protected]",
"user_id": "da9d6c93-6486-4f2e-b785-84daf8ccfeba",
"created_at": "1702060462",
"freezed": false,
"freeze_reason": ""
}
}