@auditauth/next 0.1.5 → 0.1.7
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/guard.js +1 -1
- package/dist/helpers.d.ts +4 -0
- package/dist/helpers.js +14 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/sdk.d.ts +1 -4
- package/dist/sdk.js +1 -13
- package/package.json +1 -1
package/dist/guard.js
CHANGED
package/dist/helpers.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* -------------------------------------------------------------------------- */
|
|
2
|
+
/* CLIENT SHORTCUTS */
|
|
3
|
+
/* -------------------------------------------------------------------------- */
|
|
4
|
+
import { SETTINGS } from "./settings";
|
|
5
|
+
const login = () => {
|
|
6
|
+
window.location.href = SETTINGS.bff.paths.login;
|
|
7
|
+
};
|
|
8
|
+
const logout = () => {
|
|
9
|
+
window.location.href = SETTINGS.bff.paths.logout;
|
|
10
|
+
};
|
|
11
|
+
const goToPortal = () => {
|
|
12
|
+
window.location.href = SETTINGS.bff.paths.portal;
|
|
13
|
+
};
|
|
14
|
+
export { login, logout, goToPortal };
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/sdk.d.ts
CHANGED
|
@@ -42,7 +42,4 @@ declare class AuditAuthNext {
|
|
|
42
42
|
};
|
|
43
43
|
metrics(payload: Metric): Promise<Response>;
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
declare const logout: () => void;
|
|
47
|
-
declare const goToPortal: () => void;
|
|
48
|
-
export { AuditAuthNext, login, logout, goToPortal };
|
|
45
|
+
export { AuditAuthNext };
|
package/dist/sdk.js
CHANGED
|
@@ -276,16 +276,4 @@ class AuditAuthNext {
|
|
|
276
276
|
return new Response(null, { status: 204 });
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
|
|
280
|
-
/* CLIENT SHORTCUTS */
|
|
281
|
-
/* -------------------------------------------------------------------------- */
|
|
282
|
-
const login = () => {
|
|
283
|
-
window.location.href = SETTINGS.bff.paths.login;
|
|
284
|
-
};
|
|
285
|
-
const logout = () => {
|
|
286
|
-
window.location.href = SETTINGS.bff.paths.logout;
|
|
287
|
-
};
|
|
288
|
-
const goToPortal = () => {
|
|
289
|
-
window.location.href = SETTINGS.bff.paths.portal;
|
|
290
|
-
};
|
|
291
|
-
export { AuditAuthNext, login, logout, goToPortal };
|
|
279
|
+
export { AuditAuthNext };
|