File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -100,13 +100,13 @@ export async function oauthHandleRedirect(opts?: { hubUrl?: string }): Promise<O
100
100
throw await createApiError ( openidConfigRes ) ;
101
101
}
102
102
103
- const opendidConfig : {
103
+ const openidConfig : {
104
104
authorization_endpoint : string ;
105
105
token_endpoint : string ;
106
106
userinfo_endpoint : string ;
107
107
} = await openidConfigRes . json ( ) ;
108
108
109
- const tokenRes = await fetch ( opendidConfig . token_endpoint , {
109
+ const tokenRes = await fetch ( openidConfig . token_endpoint , {
110
110
method : "POST" ,
111
111
headers : {
112
112
"Content-Type" : "application/x-www-form-urlencoded" ,
@@ -137,7 +137,7 @@ export async function oauthHandleRedirect(opts?: { hubUrl?: string }): Promise<O
137
137
138
138
const accessTokenExpiresAt = new Date ( Date . now ( ) + token . expires_in * 1000 ) ;
139
139
140
- const userInfoRes = await fetch ( opendidConfig . userinfo_endpoint , {
140
+ const userInfoRes = await fetch ( openidConfig . userinfo_endpoint , {
141
141
headers : {
142
142
Authorization : `Bearer ${ token . access_token } ` ,
143
143
} ,
You can’t perform that action at this time.
0 commit comments