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 b3dede4 commit d4e4c7dCopy full SHA for d4e4c7d
1 file changed
examples/guard-react18/normal/src/pages/Embed.tsx
@@ -110,7 +110,9 @@ export default function Embed() {
110
const getAccessTokenByIdToken = async () => {
111
const authenticationClient: AuthenticationClient = await guard.getAuthClient()
112
const res = await authenticationClient.getAccessTokenByIdToken({
113
- redirectUri: 'https://www.baidu.com',
+ // 控制台 -> 自建应用 -> 应用配置 -> 认证配置 -> 登录回调 URL
114
+ redirectUri: 'YOUR_REDIRECT_URI',
115
+ // 登录成功后,从用户信息中获取到的 ID Toten
116
idToken: userInfo!.token as string
117
})
118
console.log('getAccessTokenByIdToken: ', res)
0 commit comments