Skip to content

Commit d4e4c7d

Browse files
Update Embed.tsx
1 parent b3dede4 commit d4e4c7d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

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

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

0 commit comments

Comments
 (0)