SSO
  1. auth
SSO
  • sso
    • admin
      • account-create
      • account-suspend
      • account-unsuspend
      • account-bind-wallet
    • applications
      • scope
        • add
        • delete
      • user
        • add
        • update
        • delete
        • user-all
        • is-allowed
      • create
      • delete
      • new-api-key
      • all
      • all-own
      • details
      • is-owner
    • auth
      • token
        • token-refresh
      • register
        • register
        • request-email-code
        • verify-email-code
      • password
        • password-reset
        • request-email-code
        • verify-email-code
      • discord
        • authorize-URL
        • login
      • login
        POST
      • auth-me
        GET
      • logout
        POST
    • auth-eth
      • login-challenge
      • login
      • bind-challenge
      • bind-account
      • is-bound
    • access
      • planning
        • session
          • get
          • all
          • find
          • create
          • update
          • delete
        • assistant
          • create-sessions
          • delete-sessions
        • get
      • pbe-access
        • is-authorized
    • newsletter
      • get-subscribers
    • user
      • me
        • email
          • update
        • password
          • update
      • role
        • all
        • update-role
        • update-role-batch
        • delete-role
        • delete-role-batch
      • all
      • find
    • wallet
      • find-owner
      • find-wallet
    • Get API version
      GET
  1. auth

auth-me

GET
/auth/@
Returns the User linked to the provided authentication token.

请求参数

Header 参数

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://sso.gameown.io/api/auth/@' \
--header 'Authorization: Bearer '

返回响应

🟢200success
application/json
Body

示例
{
    "id": 1,
    "email": "kevin@rct.ai",
    "identifier": "f3806ab7-eb3e-4bd7-baeb-5edb55e4c3f0",
    "role": {
        "role": "admin",
        "isStaff": true
    },
    "access": {
        "whitelist": {
            "authorized": true,
            "attributes": {
                "isWhitelisted": false,
                "isStaff": true,
                "isOpen": false
            }
        },
        "earlyAccess": {
            "authorized": true,
            "attributes": {
                "isEATester": false,
                "isStaff": true,
                "isOpen": true
            }
        }
    },
    "wallets": {
        "ethWallet": null
    },
    "createdAt": "2022-04-24T11:16:32.000Z",
    "updatedAt": "2022-05-06T08:19:31.000Z"
}
修改于 2023-03-16 14:04:33
上一页
login
下一页
logout
Built with