Skip to content

Commit

Permalink
Merge pull request #158 from waldo-vision/auth/provider-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Huskydog9988 authored Mar 26, 2023
2 parents cb1fd07 + be7dd50 commit 8aef707
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
4 changes: 3 additions & 1 deletion apps/web/pages/api/auth/[...nextauth].ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export const authOptions = {
BattleNetProvider({
clientId: process.env.BTLNET_CLIENT_ID,
clientSecret: process.env.BTLNET_CLIENT_SECRET,
issuer: 'https://us.battle.net/oauth',
// @ts-ignore
issuer: 'https://oauth.battle.net/authorize',
}),
FaceBookProvider({
clientId: process.env.FB_CLIENT_ID,
Expand All @@ -56,6 +57,7 @@ export const authOptions = {
TwitchProvider({
clientId: process.env.TWITCH_CLIENT_ID,
clientSecret: process.env.TWITCH_CLIENT_SECRET,
issuer: 'https://id.twitch.tv/oauth2/authorize',
}),
],
callbacks: {
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,8 @@
"engines": {
"node": "^18.12.1"
},
"packageManager": "yarn@3.4.1"
"packageManager": "yarn@3.4.1",
"dependencies": {
"next-auth": "4.18.6"
}
}
26 changes: 26 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10110,6 +10110,31 @@ __metadata:
languageName: node
linkType: hard

"next-auth@npm:4.18.6":
version: 4.18.6
resolution: "next-auth@npm:4.18.6"
dependencies:
"@babel/runtime": ^7.16.3
"@panva/hkdf": ^1.0.1
cookie: ^0.5.0
jose: ^4.9.3
oauth: ^0.9.15
openid-client: ^5.1.0
preact: ^10.6.3
preact-render-to-string: ^5.1.19
uuid: ^8.3.2
peerDependencies:
next: ^12.2.5 || ^13
nodemailer: ^6.6.5
react: ^17.0.2 || ^18
react-dom: ^17.0.2 || ^18
peerDependenciesMeta:
nodemailer:
optional: true
checksum: f77f83ecf7ec0f346e3297aaaa1b80d24e0e73d82a49071389fe80873b34202ec8508ff13e1a603940c03581ca785f01a9d7cdf7fabea0a4462317522a8dc14b
languageName: node
linkType: hard

"next-auth@npm:^4.18.6":
version: 4.18.7
resolution: "next-auth@npm:4.18.7"
Expand Down Expand Up @@ -13363,6 +13388,7 @@ __metadata:
"@typescript-eslint/parser": ^5.46.1
eslint: ^8.30.0
eslint-config-custom: "workspace:*"
next-auth: 4.18.6
prettier: ^2.8.1
tsconfig: "workspace:*"
turbo: ^1.7.0
Expand Down

0 comments on commit 8aef707

Please sign in to comment.