Skip to content

Commit e3464c8

Browse files
committed
fix: fix to use accessToken on userinfo endpoint
1 parent 682a36d commit e3464c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

endpoints/userinfo.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function userinfo(this: OidcClient) {
2929
}
3030

3131
logger?.trace("openid-client/userinfo");
32-
const userinfo = await this.client.userinfo(currentSession.idToken);
32+
const userinfo = await this.client.userinfo(currentSession.accessToken);
3333

3434
set.headers["Content-Type"] = "application/json";
3535
return userinfo;

0 commit comments

Comments
 (0)