-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(playgrounds): Nuxt 3.5.1 (#7626)
* bump Nuxt to 3.5.1 * follow playground package names * chore: update nuxt playground scripts * fix: imports and types * fix: more nuxt type imports * fix: nuxt auth options types * fix: nuxt client fetch types
- Loading branch information
1 parent
c69a157
commit 8b3f069
Showing
7 changed files
with
9,600 additions
and
6,699 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
{ | ||
"name": "playground-nuxt", | ||
"name": "next-auth-nuxt", | ||
"private": true, | ||
"scripts": { | ||
"build": "nuxt prepare && nuxt build", | ||
"dev": "nuxt prepare && export NODE_OPTIONS='--no-experimental-fetch' && nuxt dev", | ||
"build": "nuxt build", | ||
"dev": "nuxt dev", | ||
"generate": "nuxt generate", | ||
"preview": "nuxt preview" | ||
"preview": "nuxt preview", | ||
"postinstall": "nuxt prepare" | ||
}, | ||
"devDependencies": { | ||
"@nuxt/eslint-config": "^0.1.1", | ||
"eslint": "^8.29.0", | ||
"h3": "1.0.2", | ||
"nuxt": "3.0.0" | ||
"h3": "1.6.6", | ||
"nuxt": "3.5.1" | ||
}, | ||
"dependencies": { | ||
"@auth/core": "workspace:*", | ||
"@hattip/adapter-node": "^0.0.22", | ||
"@hattip/adapter-node": "^0.0.34", | ||
"requrl": "^3.0.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import { NuxtAuthHandler } from "@/lib/auth/server" | ||
import GithubProvider from "@auth/core/providers/github" | ||
import type { AuthOptions } from "@auth/core" | ||
import type { AuthConfig } from "@auth/core" | ||
|
||
const runtimeConfig = useRuntimeConfig() | ||
|
||
export const authOptions: AuthOptions = { | ||
export const authOptions = { | ||
secret: runtimeConfig.secret, | ||
providers: [ | ||
GithubProvider({ | ||
clientId: runtimeConfig.github.clientId, | ||
clientSecret: runtimeConfig.github.clientSecret, | ||
}), | ||
], | ||
} | ||
} as AuthConfig | ||
|
||
export default NuxtAuthHandler(authOptions) |
Oops, something went wrong.