Return the member and team the current access token belongs to.
- Effect: none. Read-only. Safe to retry with bounded backoff.
- Use: the cheapest way to check that a token is still valid and to discover the team it is scoped to.
Security
Authorization
- MoreLogin open api endpointhttps://api.morelogin.com/oauth2/userinfo
curl -i -X GET \
https://api.morelogin.com/oauth2/userinfo \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Response
{ "code": 0, "msg": null, "data": { "teamId": "1673823102599682", "teamName": "example-name", "memberId": "1673823102599682", "memberNickName": "example-name", "memberEmail": "string" }, "requestId": "0d8b6f1c-9f4e-4d02-9d1a-7c3f5a1b2c3d" }