Skip to content

Commit

Permalink
chore(release): v2.2.4-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
becem-gharbi committed Aug 10, 2023
1 parent 1dfc4eb commit 8dbf233
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
# Changelog


## v2.2.4-beta

[compare changes](https://github.com/becem-gharbi/nuxt-directus/compare/v2.2.3-beta...v2.2.4-beta)

### 🩹 Fixes

- Store access token in long-lived cookie ([7e992de](https://github.com/becem-gharbi/nuxt-directus/commit/7e992de))

### 📖 Documentation

- Add notes section ([1bf7278](https://github.com/becem-gharbi/nuxt-directus/commit/1bf7278))
- Add accessTokenCookieMaxAge config option ([1dfc4eb](https://github.com/becem-gharbi/nuxt-directus/commit/1dfc4eb))

### 🏡 Chore

- Add accessTokenCookieMaxAge config option ([1deba60](https://github.com/becem-gharbi/nuxt-directus/commit/1deba60))

### ❤️ Contributors

- Becem Gharbi <[email protected]>
- Becem <[email protected]>

## v2.2.3-beta

[compare changes](https://github.com/becem-gharbi/nuxt-directus/compare/v2.2.2-beta...v2.2.3-beta)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bg-dev/nuxt-directus",
"version": "2.2.3-beta",
"version": "2.2.4-beta",
"license": "MIT",
"type": "module",
"author": "Becem Gharbi",
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/composables/useDirectusAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ export default function useDirectusAuth<DirectusSchema extends object>() {
setCookie(event, key, value || "", {
sameSite: "strict",
secure: true,
maxAge: config.auth.accessTokenCookieMaxAge || undefined,
maxAge: config.auth.accessTokenCookieMaxAge,
});
} else {
useCookie(key, {
sameSite: "strict",
secure: true,
maxAge: config.auth.accessTokenCookieMaxAge || undefined,
maxAge: config.auth.accessTokenCookieMaxAge,
}).value = value;
}
}
Expand Down

0 comments on commit 8dbf233

Please sign in to comment.