We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 859e047 commit b3dede4Copy full SHA for b3dede4
1 file changed
examples/guard-react/normal/src/pages/Embed.tsx
@@ -114,7 +114,9 @@ export default function Login() {
114
const getAccessTokenByIdToken = async () => {
115
const authenticationClient: AuthenticationClient = await guard.getAuthClient()
116
const res = await authenticationClient.getAccessTokenByIdToken({
117
- redirectUri: 'https://www.baidu.com',
+ // 控制台 -> 自建应用 -> 应用配置 -> 认证配置 -> 登录回调 URL
118
+ redirectUri: 'YOUR_REDIRECT_URI',
119
+ // 登录成功后,从用户信息中获取到的 ID Toten
120
idToken: userInfo!.token as string
121
})
122
console.log('getAccessTokenByIdToken: ', res)
0 commit comments