Skip to content

Commit

Permalink
Merge branch 'main' into update-pull-request
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix-ru authored Dec 19, 2024
2 parents 2be6b25 + b5af548 commit 44d1291
Show file tree
Hide file tree
Showing 12 changed files with 3,267 additions and 4,387 deletions.
4 changes: 4 additions & 0 deletions docs/guide/application-side/session-access.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ await signIn(credentials, { callbackUrl: '/protected' })

// Trigger a signIn with a redirect to an external page afterwards
await signIn(credentials, { callbackUrl: 'https://nuxt.org', external: true })

// Trigger a signIn without calling getSession directly. You have to manually call it to get session data.
await signIn(credentials, { callGetSession: false })
```

:::
Expand Down Expand Up @@ -321,6 +324,7 @@ setToken('new token')
// Helper method to quickly delete the token cookie (alias for rawToken.value = null)
clearToken()
```

:::

:::warning Local provider:
Expand Down
20 changes: 16 additions & 4 deletions docs/guide/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,22 @@

You can install NuxtAuth using nuxi:

```bash
npx nuxi@latest module add sidebase-auth
::: code-group

```bash [npm]
npx nuxi module add sidebase-auth
```

```bash [pnpm]
pnpm exec nuxi module add sidebase-auth
```

```bash [yarn]
yarn dlx nuxi module add sidebase-auth
```

:::

::: details Manual installation

::: code-group
Expand All @@ -19,7 +31,7 @@ pnpm i -D @sidebase/nuxt-auth
```

```bash [yarn]
yarn add --dev @sidebase/nuxt-auth
yarn add -D @sidebase/nuxt-auth
```

:::
Expand All @@ -31,7 +43,7 @@ Add NuxtAuth to your `nuxt.config`:
```ts [nuxt.config.ts]
export default defineNuxtConfig({
modules: [
'@sidebase/nuxt-auth',
'@sidebase/nuxt-auth'
],
})
```
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sidebase/nuxt-auth",
"version": "0.9.4",
"version": "0.10.0-rc.2",
"license": "MIT",
"type": "module",
"description": "Authentication built for Nuxt 3! Easily add authentication via OAuth providers, credentials or Email Magic URLs!",
Expand Down Expand Up @@ -37,11 +37,11 @@
"test:unit": "vitest"
},
"dependencies": {
"@nuxt/kit": "^3.12.4",
"@nuxt/kit": "^3.14.1592",
"defu": "^6.1.4",
"h3": "^1.12.0",
"h3": "^1.13.0",
"knitwork": "^1.1.0",
"nitropack": "^2.9.7",
"nitropack": "^2.10.4",
"requrl": "^3.0.2",
"scule": "^1.3.0",
"ufo": "^1.5.4"
Expand All @@ -50,20 +50,20 @@
"next-auth": "~4.21.1"
},
"devDependencies": {
"@antfu/eslint-config": "^2.25.0",
"@nuxt/module-builder": "^0.8.3",
"@nuxt/schema": "^3.12.4",
"@antfu/eslint-config": "^2.27.3",
"@nuxt/module-builder": "^0.8.4",
"@nuxt/schema": "^3.14.1592",
"@nuxtjs/eslint-config-typescript": "^12.1.0",
"@types/node": "^18.19.42",
"eslint": "^8.57.0",
"nuxt": "^3.12.4",
"ofetch": "^1.3.4",
"oxlint": "^0.7.0",
"@types/node": "^18.19.68",
"eslint": "^8.57.1",
"nuxt": "^3.14.1592",
"ofetch": "^1.4.1",
"oxlint": "^0.7.2",
"ts-essentials": "^9.4.2",
"typescript": "^5.5.4",
"vitepress": "^1.3.1",
"vitepress": "^1.5.0",
"vitest": "^1.6.0",
"vue-tsc": "^2.0.29"
"vue-tsc": "^2.1.10"
},
"packageManager": "[email protected]+sha512.38dc6fba8dba35b39340b9700112c2fe1e12f10b17134715a4aa98ccf7bb035e76fd981cf0bb384dfa98f8d6af5481c2bef2f4266a24bfa20c34eb7147ce0b5e"
}
4 changes: 2 additions & 2 deletions playground-authjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"postinstall": "nuxt prepare"
},
"devDependencies": {
"nuxt": "^3.12.4",
"nuxt": "^3.14.1592",
"typescript": "^5.5.4",
"vue-tsc": "^2.0.29"
"vue-tsc": "^2.1.10"
}
}
12 changes: 6 additions & 6 deletions playground-local/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
"zod": "^3.23.8"
},
"devDependencies": {
"@nuxt/test-utils": "^3.14.1",
"@playwright/test": "^1.46.0",
"@types/jsonwebtoken": "^9.0.6",
"@types/node": "^18.19.44",
"@nuxt/test-utils": "^3.15.1",
"@playwright/test": "^1.49.1",
"@types/jsonwebtoken": "^9.0.7",
"@types/node": "^18.19.68",
"@vue/test-utils": "^2.4.6",
"nuxt": "^3.12.4",
"nuxt": "^3.14.1592",
"typescript": "^5.5.4",
"vitest": "^1.6.0",
"vue-tsc": "^2.0.29"
"vue-tsc": "^2.1.10"
}
}
Loading

0 comments on commit 44d1291

Please sign in to comment.