@auditauth/next 0.1.6 → 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.
@@ -0,0 +1,4 @@
1
+ declare const login: () => void;
2
+ declare const logout: () => void;
3
+ declare const goToPortal: () => void;
4
+ export { login, logout, goToPortal };
@@ -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
@@ -1,3 +1,4 @@
1
- export { AuditAuthNext, goToPortal, login, logout } from './sdk';
1
+ export { AuditAuthNext } from './sdk';
2
2
  export { AuditAuthGuard, useAuditAuth } from './guard';
3
+ export { login, logout, goToPortal } from './helpers';
3
4
  export type * from './types';
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
- export { AuditAuthNext, goToPortal, login, logout } from './sdk';
1
+ export { AuditAuthNext } from './sdk';
2
2
  export { AuditAuthGuard, useAuditAuth } from './guard';
3
+ export { login, logout, goToPortal } from './helpers';
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
- declare const login: () => void;
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auditauth/next",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Official AuditAuth SDK for Next.js",
5
5
  "license": "MIT",
6
6
  "author": "Nimibyte",