@vatts/auth 2.0.2 → 2.1.0-canary.1

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/LICENSE CHANGED
@@ -1,13 +1,13 @@
1
- Copyright 2026 mfraz
2
-
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
-
7
- http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
1
+ Copyright 2026 mfraz
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
13
  limitations under the License.
package/README.md CHANGED
@@ -1,52 +1,52 @@
1
- <div align="center">
2
- <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/mfrazlab/vatts.js/docs/public/logo.png">
4
- <img alt="Vatts.js logo" src="https://raw.githubusercontent.com/mfrazlab/vatts.js/docs/public/logo.png" width="128">
5
- </picture>
6
- <h1>@vatts/auth</h1>
7
-
8
- [![NPM](https://img.shields.io/npm/v/@vatts/auth.svg?style=for-the-badge&labelColor=000000)](https://www.npmjs.com/package/@vatts/auth)
9
- [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg?style=for-the-badge&labelColor=000000)](../../LICENSE)
10
- [![GitHub](https://img.shields.io/badge/GitHub-mfrazlab/vatts.js-100000?style=for-the-badge&logo=github&logoColor=white)](https://github.com/mfrazlab/vatts.js)
11
- </div>
12
-
13
- ___
14
-
15
- ## Getting Started
16
-
17
- **@vatts/auth** is the official authentication package for the **Vatts.js** framework, providing secure, flexible, and production-ready authentication with JWT, multiple OAuth providers and session management.
18
-
19
- - Secure by default — robust JWT implementation
20
- - Multiple providers — OAuth, credentials, and custom
21
- - Ready for React and Vue — integrated hooks and components
22
- - Strong typing — 100% TypeScript
23
- - Zero configuration — works out-of-the-box
24
- - Production-ready — CSRF protection, and more
25
-
26
- ___
27
-
28
- ## Documentation
29
-
30
- Visit [https://vatts.mfraz.ovh](https://vatts.mfraz.ovh) for full documentation of Vatts.js and its official packages.
31
-
32
- ___
33
-
34
- ## Community
35
-
36
- Join the Vatts.js community on [GitHub Discussions](https://github.com/mfraz/vatts.js) to ask questions, share ideas, and showcase your projects.
37
-
38
- ___
39
-
40
- ## Security
41
-
42
- If you discover a security vulnerability, please **do not open a public issue**. Email [helpers@mfraz.ovh](mailto:helpers@mfraz.ovh) to participate in the responsible disclosure program.
43
-
44
- ___
45
-
46
- ## License
47
-
48
- Copyright 2026 mfraz
49
-
50
- This project is licensed under the [Apache License 2.0](./LICENSE).
51
-
52
- ___
1
+ <div align="center">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/mfrazlab/vatts.js/docs/public/logo.png">
4
+ <img alt="Vatts.js logo" src="https://raw.githubusercontent.com/mfrazlab/vatts.js/docs/public/logo.png" width="128">
5
+ </picture>
6
+ <h1>@vatts/auth</h1>
7
+
8
+ [![NPM](https://img.shields.io/npm/v/@vatts/auth.svg?style=for-the-badge&labelColor=000000)](https://www.npmjs.com/package/@vatts/auth)
9
+ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg?style=for-the-badge&labelColor=000000)](../../LICENSE)
10
+ [![GitHub](https://img.shields.io/badge/GitHub-mfrazlab/vatts.js-100000?style=for-the-badge&logo=github&logoColor=white)](https://github.com/mfrazlab/vatts.js)
11
+ </div>
12
+
13
+ ___
14
+
15
+ ## Getting Started
16
+
17
+ **@vatts/auth** is the official authentication package for the **Vatts.js** framework, providing secure, flexible, and production-ready authentication with JWT, multiple OAuth providers and session management.
18
+
19
+ - Secure by default — robust JWT implementation
20
+ - Multiple providers — OAuth, credentials, and custom
21
+ - Ready for React and Vue — integrated hooks and components
22
+ - Strong typing — 100% TypeScript
23
+ - Zero configuration — works out-of-the-box
24
+ - Production-ready — CSRF protection, and more
25
+
26
+ ___
27
+
28
+ ## Documentation
29
+
30
+ Visit [https://vatts.mfraz.ovh](https://vatts.mfraz.ovh) for full documentation of Vatts.js and its official packages.
31
+
32
+ ___
33
+
34
+ ## Community
35
+
36
+ Join the Vatts.js community on [GitHub Discussions](https://github.com/mfraz/vatts.js) to ask questions, share ideas, and showcase your projects.
37
+
38
+ ___
39
+
40
+ ## Security
41
+
42
+ If you discover a security vulnerability, please **do not open a public issue**. Email [helpers@mfraz.ovh](mailto:helpers@mfraz.ovh) to participate in the responsible disclosure program.
43
+
44
+ ___
45
+
46
+ ## License
47
+
48
+ Copyright 2026 mfraz
49
+
50
+ This project is licensed under the [Apache License 2.0](./LICENSE).
51
+
52
+ ___
@@ -1,30 +1,30 @@
1
- <script setup>
2
- /**
3
- * This file is part of the Vatts.js Project.
4
- * Copyright (c) 2026 mfraz
5
- */
6
- import { useSessionProviderLogic } from './session';
7
-
8
- // Definição das props com valores padrão (Sintaxe JavaScript)
9
- const props = defineProps({
10
- basePath: {
11
- type: String,
12
- default: '/api/auth'
13
- },
14
- refetchInterval: {
15
- type: Number,
16
- default: 0
17
- },
18
- refetchOnWindowFocus: {
19
- type: Boolean,
20
- default: true
21
- }
22
- });
23
-
24
- // Inicializa a lógica do provider passando as props reativas
25
- useSessionProviderLogic(props);
26
- </script>
27
-
28
- <template>
29
- <slot />
1
+ <script setup>
2
+ /**
3
+ * This file is part of the Vatts.js Project.
4
+ * Copyright (c) 2026 mfraz
5
+ */
6
+ import { useSessionProviderLogic } from './session';
7
+
8
+ // Definição das props com valores padrão (Sintaxe JavaScript)
9
+ const props = defineProps({
10
+ basePath: {
11
+ type: String,
12
+ default: '/api/auth'
13
+ },
14
+ refetchInterval: {
15
+ type: Number,
16
+ default: 0
17
+ },
18
+ refetchOnWindowFocus: {
19
+ type: Boolean,
20
+ default: true
21
+ }
22
+ });
23
+
24
+ // Inicializa a lógica do provider passando as props reativas
25
+ useSessionProviderLogic(props);
26
+ </script>
27
+
28
+ <template>
29
+ <slot />
30
30
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vatts/auth",
3
- "version": "2.0.2",
3
+ "version": "2.1.0-canary.1",
4
4
  "description": "Authentication package for Vatts.js framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -50,7 +50,7 @@
50
50
  "react": "^19.2.0",
51
51
  "react-dom": "^19.2.0",
52
52
  "vue": "^3.5.27",
53
- "vatts": "^2.0.2"
53
+ "vatts": "^2.1.0-canary.1"
54
54
  },
55
55
  "peerDependenciesMeta": {
56
56
  "react-dom": {