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

Commit

Permalink
Fix prettier bug
Browse files Browse the repository at this point in the history
Prettier made wrong changes, so "prettier-ignore" line was added, to ignore prettier for the code parts.
pinterid committed Jun 8, 2020
1 parent 0574371 commit bb9cfa7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/utils/oauth/GithubProvider.ts
Original file line number Diff line number Diff line change
@@ -106,13 +106,14 @@ const GithubProvider: IProvider<boolean> = {

/* POST request to get the access token from GitHub */
await fetch(AuthorizeUrl, {
// prettier-ignore
headers: {
Accept: "application/json",
"Accept": "application/json",
"Access-Allow-Credentials": "True",
"Access-Control-Allow-Methods": "POST",
"Access-Control-Allow-Origin": "*",
"Content-Type": "application/json",
Vary: "Origin",
"Vary": "Origin",
},
method: "POST",
})
@@ -122,9 +123,10 @@ const GithubProvider: IProvider<boolean> = {

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

0 comments on commit bb9cfa7

Please sign in to comment.