Closed noracami closed 1 month ago
{
"iss": "https://dev-1l0ixjw8yohsluoi.us.auth0.com/",
"sub": "google-oauth2|107793760333100767005",
"aud": [
"https://api.gaas.waterballsa.tw",
"https://dev-1l0ixjw8yohsluoi.us.auth0.com/userinfo"
],
"iat": 1721670894,
"exp": 1721674494,
"scope": "openid profile email offline_access",
"azp": "0Z7hnDld5trPqi2v0lloBY74MHdDYGEy"
}
$ url=https://api.gaas.waterballsa.tw/users/me
$ curl -H "Authorization: Bearer $auth0_token" $url
{
"id": "24 digit hex string",
"email": "example@x.com",
"nickname": "string"
}
🚧 https://github.com/side-project-at-SPT/split-rails/commit/7ae89c31965bf018fb2741c68e9727ae4f38bc1b : 確認有哪些方法可以直接使用 Auth0 token
iss
欄位,去決定 decode 的 method