Skip to content

Commit 713844e

Browse files
authored
Fix typo in variable name (#1062)
1 parent c328145 commit 713844e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/hub/src/lib/oauth-handle-redirect.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ export async function oauthHandleRedirect(opts?: { hubUrl?: string }): Promise<O
100100
throw await createApiError(openidConfigRes);
101101
}
102102

103-
const opendidConfig: {
103+
const openidConfig: {
104104
authorization_endpoint: string;
105105
token_endpoint: string;
106106
userinfo_endpoint: string;
107107
} = await openidConfigRes.json();
108108

109-
const tokenRes = await fetch(opendidConfig.token_endpoint, {
109+
const tokenRes = await fetch(openidConfig.token_endpoint, {
110110
method: "POST",
111111
headers: {
112112
"Content-Type": "application/x-www-form-urlencoded",
@@ -137,7 +137,7 @@ export async function oauthHandleRedirect(opts?: { hubUrl?: string }): Promise<O
137137

138138
const accessTokenExpiresAt = new Date(Date.now() + token.expires_in * 1000);
139139

140-
const userInfoRes = await fetch(opendidConfig.userinfo_endpoint, {
140+
const userInfoRes = await fetch(openidConfig.userinfo_endpoint, {
141141
headers: {
142142
Authorization: `Bearer ${token.access_token}`,
143143
},

0 commit comments

Comments
 (0)