Skip to content

Commit 01c1df1

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

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

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

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

0 commit comments

Comments
 (0)