flowlink-auth 2.6.9 → 2.7.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/dist/ErrorBox.js +0 -1
- package/dist/SignIn.js +1 -2
- package/dist/SignUp.js +1 -2
- package/dist/api.js +0 -1
- package/dist/createAuthMiddleware.js +0 -1
- package/dist/index.js +1069 -47
- package/dist/init.js +5 -6
- package/dist/provider.js +3 -4
- package/dist/securityUtils.js +0 -1
- package/dist/useAuth.js +1 -2
- package/package.json +2 -2
package/dist/ErrorBox.js
CHANGED
package/dist/SignIn.js
CHANGED
|
@@ -1017,7 +1017,7 @@ var import_react = __toESM(require_react(), 1);
|
|
|
1017
1017
|
var AuthContext = (0, import_react.createContext)(null);
|
|
1018
1018
|
var useAuth = () => {
|
|
1019
1019
|
const ctx = (0, import_react.useContext)(AuthContext);
|
|
1020
|
-
if (!ctx) throw new Error("useAuth must be used within
|
|
1020
|
+
if (!ctx) throw new Error("useAuth must be used within FlowlinkAuthProvider");
|
|
1021
1021
|
return ctx;
|
|
1022
1022
|
};
|
|
1023
1023
|
|
|
@@ -1189,4 +1189,3 @@ react/cjs/react.development.js:
|
|
|
1189
1189
|
* LICENSE file in the root directory of this source tree.
|
|
1190
1190
|
*)
|
|
1191
1191
|
*/
|
|
1192
|
-
|
package/dist/SignUp.js
CHANGED
|
@@ -1017,7 +1017,7 @@ var import_react = __toESM(require_react(), 1);
|
|
|
1017
1017
|
var AuthContext = (0, import_react.createContext)(null);
|
|
1018
1018
|
var useAuth = () => {
|
|
1019
1019
|
const ctx = (0, import_react.useContext)(AuthContext);
|
|
1020
|
-
if (!ctx) throw new Error("useAuth must be used within
|
|
1020
|
+
if (!ctx) throw new Error("useAuth must be used within FlowlinkAuthProvider");
|
|
1021
1021
|
return ctx;
|
|
1022
1022
|
};
|
|
1023
1023
|
|
|
@@ -1243,4 +1243,3 @@ react/cjs/react.development.js:
|
|
|
1243
1243
|
* LICENSE file in the root directory of this source tree.
|
|
1244
1244
|
*)
|
|
1245
1245
|
*/
|
|
1246
|
-
|
package/dist/api.js
CHANGED