Skip to content

Commit dabf263

Browse files
authored
Merge pull request #10 from macropygia/feature/fix-userinfo
Fix to use accessToken on UserInfo endpoint
2 parents 682a36d + e3464c8 commit dabf263

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)