@riligar/auth-elysia 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,8 +1,16 @@
1
1
  import { Elysia } from 'elysia';
2
2
 
3
3
  /**
4
- * @riligar/auth-elysia
5
- * Plugin de autenticação para ElysiaJS - Auth-as-a-Service
4
+ * @module @riligar/auth-elysia
5
+ * @description Auth SDK for ElysiaJS with JWT and JWKS
6
+ * @version See package.json
7
+ * @since 1.0.0
8
+ * @copyright 2024-2026 Riligar
9
+ *
10
+ * @license MIT
11
+ * @author Riligar
12
+ * @see https://github.com/riligar-solutions/auth
13
+ * @see https://www.npmjs.com/package/@riligar/auth-elysia
6
14
  */
7
15
 
8
16
 
@@ -18,7 +26,7 @@ const DEFAULT_CONFIG = {
18
26
  httpOnly: true,
19
27
  secure: process.env.NODE_ENV === 'production',
20
28
  sameSite: 'lax',
21
- maxAge: 86400, // 24 horas
29
+ maxAge: 604800, // 7 dias (igual ao JWT)
22
30
  },
23
31
  excludePaths: ['/auth/login', '/auth/register', '/auth/session'],
24
32
  onUnauthorized: set => {
package/dist/index.js CHANGED
@@ -5,8 +5,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var elysia = require('elysia');
6
6
 
7
7
  /**
8
- * @riligar/auth-elysia
9
- * Plugin de autenticação para ElysiaJS - Auth-as-a-Service
8
+ * @module @riligar/auth-elysia
9
+ * @description Auth SDK for ElysiaJS with JWT and JWKS
10
+ * @version See package.json
11
+ * @since 1.0.0
12
+ * @copyright 2024-2026 Riligar
13
+ *
14
+ * @license MIT
15
+ * @author Riligar
16
+ * @see https://github.com/riligar-solutions/auth
17
+ * @see https://www.npmjs.com/package/@riligar/auth-elysia
10
18
  */
11
19
 
12
20
 
@@ -22,7 +30,7 @@ const DEFAULT_CONFIG = {
22
30
  httpOnly: true,
23
31
  secure: process.env.NODE_ENV === 'production',
24
32
  sameSite: 'lax',
25
- maxAge: 86400, // 24 horas
33
+ maxAge: 604800, // 7 dias (igual ao JWT)
26
34
  },
27
35
  excludePaths: ['/auth/login', '/auth/register', '/auth/session'],
28
36
  onUnauthorized: set => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riligar/auth-elysia",
3
- "version": "1.2.0",
3
+ "version": "1.4.0",
4
4
  "type": "module",
5
5
  "description": "Auth SDK for ElysiaJS with JWT and JWKS",
6
6
  "main": "dist/index.js",
package/src/index.js CHANGED
@@ -1,6 +1,14 @@
1
1
  /**
2
- * @riligar/auth-elysia
3
- * Plugin de autenticação para ElysiaJS - Auth-as-a-Service
2
+ * @module @riligar/auth-elysia
3
+ * @description Auth SDK for ElysiaJS with JWT and JWKS
4
+ * @version See package.json
5
+ * @since 1.0.0
6
+ * @copyright 2024-2026 Riligar
7
+ *
8
+ * @license MIT
9
+ * @author Riligar
10
+ * @see https://github.com/riligar-solutions/auth
11
+ * @see https://www.npmjs.com/package/@riligar/auth-elysia
4
12
  */
5
13
 
6
14
  import { Elysia } from 'elysia'
@@ -17,7 +25,7 @@ const DEFAULT_CONFIG = {
17
25
  httpOnly: true,
18
26
  secure: process.env.NODE_ENV === 'production',
19
27
  sameSite: 'lax',
20
- maxAge: 86400, // 24 horas
28
+ maxAge: 604800, // 7 dias (igual ao JWT)
21
29
  },
22
30
  excludePaths: ['/auth/login', '/auth/register', '/auth/session'],
23
31
  onUnauthorized: set => {