Skip to content

Commit b3139be

Browse files
Update Embed.vue
1 parent 01c1df1 commit b3139be

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • examples/guard-vue3/normal/src/views

examples/guard-vue3/normal/src/views/Embed.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ const changeLang = (event: any) => {
9191
const getAccessTokenByIdToken = async () => {
9292
const authenticationClient: AuthenticationClient = await guard.getAuthClient()
9393
const res = await authenticationClient.getAccessTokenByIdToken({
94-
redirectUri: 'https://www.baidu.com',
94+
// 控制台 -> 自建应用 -> 应用配置 -> 认证配置 -> 登录回调 URL
95+
redirectUri: 'YOUR_REDIRECT_URI',
96+
// 登录成功后,从用户信息中获取到的 ID Toten
9597
idToken: userInfo.value?.token as string
9698
})
9799
console.log('getAccessTokenByIdToken: ', res)

0 commit comments

Comments
 (0)