Auth
Get current session
Returns the current user session. Supports both authenticated and unauthenticated requests.
ProductionStagingUAT
GEThttps://math.ankiren.com/api/auth/session
Responses
200 · Session info
- userobject?
- namestring
- emailstring
- imagestring?
- roles[string]
- loginUrlstring
application/json
{ "user": { "name": "Anh V", "email": "[email protected]", "image": null, "roles": [ "admin" ] }, "loginUrl": "https://ankiren.com/auth/signin" }
Sample Code
Đổi ngôn ngữ ở ô Language trên thanh Documentation.
cURL
curl -X GET 'https://math.ankiren.com/api/auth/session' \ -H 'Authorization: Bearer <token>' \ -H 'Accept: application/json'