@ttoss/react-auth 1.7.57 → 2.0.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/README.md +1 -3
- package/dist/esm/index.js +2 -2
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
# @ttoss/react-auth
|
|
2
2
|
|
|
3
|
-
## About
|
|
4
|
-
|
|
5
3
|
This module handles auth in your applications and other ttoss modules.
|
|
6
4
|
|
|
7
5
|
This module is intended to use with AWS Cognito. It uses [AWS Amplify](https://docs.amplify.aws/lib/auth/getting-started/q/platform/js) under the hood.
|
|
8
6
|
|
|
9
7
|
[Amplify Auth configuration](https://docs.amplify.aws/lib/auth/start/q/platform/js#re-use-existing-authentication-resource) must be provided in your App to make Auth Module works properly.
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
## ESM Only
|
|
12
10
|
|
|
13
11
|
This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
|
|
14
12
|
|
package/dist/esm/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
8
8
|
var signOut = () => {
|
|
9
9
|
return awsSignOut();
|
|
10
10
|
};
|
|
11
|
-
var AuthContext =
|
|
11
|
+
var AuthContext = React.createContext({
|
|
12
12
|
signOut,
|
|
13
13
|
isAuthenticated: false,
|
|
14
14
|
user: null,
|
|
@@ -87,7 +87,7 @@ import * as React2 from "react";
|
|
|
87
87
|
import { Box, Button, Flex, Heading } from "@ttoss/ui";
|
|
88
88
|
import { useNotifications } from "@ttoss/react-notifications";
|
|
89
89
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
90
|
-
var LogoContext =
|
|
90
|
+
var LogoContext = React2.createContext({});
|
|
91
91
|
var LogoProvider = ({
|
|
92
92
|
children,
|
|
93
93
|
...values
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/react-auth",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "ttoss authentication module for React apps.",
|
|
5
5
|
"author": "ttoss",
|
|
6
6
|
"contributors": [
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@xstate/react": "^3.2.2",
|
|
29
29
|
"xstate": "^4.38.3",
|
|
30
|
-
"@ttoss/forms": "^0.
|
|
30
|
+
"@ttoss/forms": "^0.25.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"aws-amplify": "^6.0.0",
|
|
34
34
|
"react": ">=16.8.0",
|
|
35
|
-
"@ttoss/react-
|
|
36
|
-
"@ttoss/
|
|
37
|
-
"@ttoss/
|
|
35
|
+
"@ttoss/react-notifications": "^1.24.48",
|
|
36
|
+
"@ttoss/ui": "^5.0.0",
|
|
37
|
+
"@ttoss/react-i18n": "^2.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@jest/globals": "^29.7.0",
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"jest": "^29.7.0",
|
|
44
44
|
"react": "^18.3.1",
|
|
45
45
|
"tsup": "^8.2.4",
|
|
46
|
-
"@ttoss/cloud-auth": "^0.12.
|
|
47
|
-
"@ttoss/config": "^1.32.
|
|
48
|
-
"@ttoss/i18n-cli": "^0.7.
|
|
49
|
-
"@ttoss/react-i18n": "^
|
|
50
|
-
"@ttoss/
|
|
51
|
-
"@ttoss/
|
|
52
|
-
"@ttoss/
|
|
46
|
+
"@ttoss/cloud-auth": "^0.12.17",
|
|
47
|
+
"@ttoss/config": "^1.32.9",
|
|
48
|
+
"@ttoss/i18n-cli": "^0.7.18",
|
|
49
|
+
"@ttoss/react-i18n": "^2.0.0",
|
|
50
|
+
"@ttoss/test-utils": "^2.1.13",
|
|
51
|
+
"@ttoss/react-notifications": "^1.24.48",
|
|
52
|
+
"@ttoss/ui": "^5.0.0"
|
|
53
53
|
},
|
|
54
54
|
"keywords": [
|
|
55
55
|
"React",
|
|
@@ -62,6 +62,6 @@
|
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "tsup",
|
|
64
64
|
"i18n": "ttoss-i18n",
|
|
65
|
-
"test": "jest"
|
|
65
|
+
"test": "jest --projects tests/unit"
|
|
66
66
|
}
|
|
67
67
|
}
|