验证 JWT Token
发送 Token 给 Authing 服务器验证
import axios from 'axios'
axios({
method: 'POST',
operationName: 'checkLoginStatus',
query: `query checkLoginStatus($token: String) {
checkLoginStatus(token: $token) {
status
code
message
token {
data {
email
id
clientId
unionid
}
iat
exp
}
}
}`,
variables: {
token: 'USER_JWT_TOKEN'
},
}).then((res) => {
const d = res.data;
if (d.errors) {
throw d.errors[0];
}
return d.data.checkLoginStatus;
});
.then((loginStatus) => {
// handle login status
})
.catch((error) => {
// handle error
});各语言使用 GraphQL 的方法
验证 JWT Token 合法性的 GraphQL
使用 OIDC 应用的密钥验证 Token


在线验证
验证 OIDC access_token 或 id_token 的合法性
Path Parameters
Name
Type
Description
验证 OAuth access_token 合法性
Path Parameters
Name
Type
Description
Last updated
Was this helpful?