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 371ee90 commit fda2d1bCopy full SHA for fda2d1b
api/src/core/usecases/auth/oidcClient.ts
@@ -135,7 +135,9 @@ export class HttpOidcClient implements OidcClient {
135
136
const responseBody = await response.text();
137
138
- const userInfoAsString = responseBody.startsWith("ey") ? atob(responseBody.split(".")[1]) : responseBody;
+ const userInfoAsString = responseBody.startsWith("ey")
139
+ ? Buffer.from(responseBody.split(".")[1], "base64").toString("utf8")
140
+ : responseBody;
141
142
return JSON.parse(userInfoAsString);
143
}
0 commit comments