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 28ee325 commit 859e047Copy full SHA for 859e047
1 file changed
examples/guard-angular/normal/src/app/pages/embed/embed.component.ts
@@ -80,7 +80,9 @@ export class EmbedComponent {
80
async getAccessTokenByIdToken () {
81
const authenticationClient: AuthenticationClient = await this.guard.client.getAuthClient()
82
const res = await authenticationClient.getAccessTokenByIdToken({
83
- redirectUri: 'https://www.baidu.com',
+ // 控制台 -> 自建应用 -> 应用配置 -> 认证配置 -> 登录回调 URL
84
+ redirectUri: 'YOUR_REDIRECT_URI',
85
+ // 登录成功后,从用户信息中获取到的 ID Toten
86
idToken: this.userInfo!.token as string
87
})
88
console.log('getAccessTokenByIdToken: ', res)
0 commit comments