Skip to content

Commit b3dede4

Browse files
Update Embed.tsx
1 parent 859e047 commit b3dede4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • examples/guard-react/normal/src/pages

examples/guard-react/normal/src/pages/Embed.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ export default function Login() {
114114
const getAccessTokenByIdToken = async () => {
115115
const authenticationClient: AuthenticationClient = await guard.getAuthClient()
116116
const res = await authenticationClient.getAccessTokenByIdToken({
117-
redirectUri: 'https://www.baidu.com',
117+
// 控制台 -> 自建应用 -> 应用配置 -> 认证配置 -> 登录回调 URL
118+
redirectUri: 'YOUR_REDIRECT_URI',
119+
// 登录成功后,从用户信息中获取到的 ID Toten
118120
idToken: userInfo!.token as string
119121
})
120122
console.log('getAccessTokenByIdToken: ', res)

0 commit comments

Comments
 (0)