Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Commit bb9cfa7

Browse files
committed
Fix prettier bug
Prettier made wrong changes, so "prettier-ignore" line was added, to ignore prettier for the code parts.
1 parent 0574371 commit bb9cfa7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/utils/oauth/GithubProvider.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,14 @@ const GithubProvider: IProvider<boolean> = {
106106

107107
/* POST request to get the access token from GitHub */
108108
await fetch(AuthorizeUrl, {
109+
// prettier-ignore
109110
headers: {
110-
Accept: "application/json",
111+
"Accept": "application/json",
111112
"Access-Allow-Credentials": "True",
112113
"Access-Control-Allow-Methods": "POST",
113114
"Access-Control-Allow-Origin": "*",
114115
"Content-Type": "application/json",
115-
Vary: "Origin",
116+
"Vary": "Origin",
116117
},
117118
method: "POST",
118119
})
@@ -122,9 +123,10 @@ const GithubProvider: IProvider<boolean> = {
122123

123124
/* GET request to get the user used for OAuth */
124125
await fetch(`${providerConfig.urls.usernameUrl}`, {
126+
// prettier-ignore
125127
headers: {
126-
authorization: "Token " + accessToken,
127-
},
128+
"authorization": "Token " + accessToken,
129+
}
128130
})
129131
.then(async (res) => await res.json())
130132
.then((res) => {

0 commit comments

Comments
 (0)