Skip to content

Commit 7113f98

Browse files
committed
# Conflicts: # src/runtime/server/lib/oauth/auth0.ts
2 parents 915eef6 + 79f7ce7 commit 7113f98

18 files changed

+1845
-270
lines changed

CHANGELOG.md

+38
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,44 @@
11
# Changelog
22

33

4+
## v0.0.8
5+
6+
[compare changes](https://github.com/Atinux/nuxt-auth-utils/compare/v0.0.7...v0.0.8)
7+
8+
### 🩹 Fixes
9+
10+
- Avoid infinite loop with latest Nuxt ([93b949d](https://github.com/Atinux/nuxt-auth-utils/commit/93b949d))
11+
12+
### 🏡 Chore
13+
14+
- **playground:** Better with right title ([97a3ad3](https://github.com/Atinux/nuxt-auth-utils/commit/97a3ad3))
15+
16+
### ❤️ Contributors
17+
18+
- Sébastien Chopin ([@Atinux](http://github.com/Atinux))
19+
20+
## v0.0.7
21+
22+
[compare changes](https://github.com/Atinux/nuxt-auth-utils/compare/v0.0.6...v0.0.7)
23+
24+
### 🩹 Fixes
25+
26+
- **oauth:** Add generic OAuthConfig type ([#18](https://github.com/Atinux/nuxt-auth-utils/pull/18))
27+
28+
### 📖 Documentation
29+
30+
- Use consistent reference to module ([13daa78](https://github.com/Atinux/nuxt-auth-utils/commit/13daa78))
31+
32+
### 🏡 Chore
33+
34+
- Add SameSite=lax ([1b296e2](https://github.com/Atinux/nuxt-auth-utils/commit/1b296e2))
35+
36+
### ❤️ Contributors
37+
38+
- Sigve Hansen ([@sifferhans](http://github.com/sifferhans))
39+
- Daniel Roe <[email protected]>
40+
- Sébastien Chopin ([@Atinux](http://github.com/Atinux))
41+
442
## v0.0.6
543

644
[compare changes](https://github.com/Atinux/nuxt-auth-utils/compare/v0.0.5...v0.0.6)

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ export default defineNuxtConfig({
5353
NUXT_SESSION_PASSWORD=password-with-at-least-32-characters
5454
```
5555

56-
Nuxt Auth Core can generate one for you when running Nuxt in development the first time when no `NUXT_SESSION_PASSWORD` is set.
56+
Nuxt Auth Utils can generate one for you when running Nuxt in development the first time when no `NUXT_SESSION_PASSWORD` is set.
5757

5858
4. That's it! You can now add authentication to your Nuxt app ✨
5959

6060
## Vue Composables
6161

62-
Nuxt Neo automatically add some plugins to fetch the current user session to let you access it from your Vue components.
62+
Nuxt Auth Utils automatically adds some plugins to fetch the current user session to let you access it from your Vue components.
6363

6464
### User Session
6565

@@ -108,14 +108,15 @@ await clearUserSession(event)
108108
const session = await requireUserSession(event)
109109
```
110110

111-
You can define the type for your user session by creating a type declaration file (for example, `auth.d.ts`) in your project:
111+
You can define the type for your user session by creating a type declaration file (for example, `auth.d.ts`) in your project to augment the `UserSession` type:
112112

113113
```ts
114114
declare module '#auth-utils' {
115115
interface UserSession {
116116
// define the type here
117117
}
118118
}
119+
export {}
119120
```
120121

121122
### OAuth Event Handlers

package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nuxt-auth-utils",
3-
"version": "0.0.6",
3+
"version": "0.0.8",
44
"description": "Minimalist Auth module for Nuxt with SSR",
55
"repository": "Atinux/nuxt-auth-utils",
66
"license": "MIT",
@@ -30,25 +30,25 @@
3030
"test:watch": "vitest watch"
3131
},
3232
"dependencies": {
33-
"@nuxt/kit": "^3.8.1",
33+
"@nuxt/kit": "^3.8.2",
3434
"defu": "^6.1.3",
3535
"ofetch": "^1.3.3",
3636
"ohash": "^1.1.3"
3737
},
3838
"devDependencies": {
39-
"@iconify-json/simple-icons": "^1.1.78",
39+
"@iconify-json/simple-icons": "^1.1.79",
4040
"@nuxt/devtools": "latest",
4141
"@nuxt/eslint-config": "^0.2.0",
4242
"@nuxt/module-builder": "^0.5.4",
43-
"@nuxt/schema": "^3.8.1",
43+
"@nuxt/schema": "^3.8.2",
4444
"@nuxt/test-utils": "^3.8.1",
4545
"@nuxt/ui": "^2.10.0",
4646
"@nuxt/ui-pro": "^0.4.2",
47-
"@types/node": "^20.9.0",
47+
"@types/node": "^20.9.3",
4848
"changelogen": "^0.5.5",
49-
"eslint": "^8.53.0",
50-
"nuxt": "^3.8.1",
51-
"typescript": "^5.2.2",
49+
"eslint": "^8.54.0",
50+
"nuxt": "^3.8.2",
51+
"typescript": "^5.3.2",
5252
"vitest": "^0.34.6",
5353
"vue-tsc": "^1.8.22"
5454
}

playground/app.vue

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ const providers = computed(() => [
5353

5454
<template>
5555
<UHeader>
56+
<template #logo>
57+
Nuxt Auth Utils
58+
</template>
5659
<template #right>
5760
<UDropdown :items="[providers]">
5861
<UButton

playground/auth.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ declare module '#auth-utils' {
1212
loggedInAt: number
1313
}
1414
}
15+
16+
export {}

0 commit comments

Comments
 (0)