@auditauth/next 0.1.6 → 0.1.8
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/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/dist/settings.d.ts +2 -2
- package/dist/settings.js +2 -2
- package/package.json +2 -1
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 };
|
package/dist/settings.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ declare const SETTINGS: {
|
|
|
2
2
|
readonly jwt_public_key: "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAs2EYs4Q9OyjNuAEPqb4j\nIzc52JdfVcNvEbG43Xp8B2kI9QxwRyX7rtFSwKowj3W1BlCLaTIMK3TafWOf9QwH\nfemuL9Ni37PFcGptzpyuoCYYA650EuD82PENcO49lsObvty2cuXxQszbPPvAecm4\nJ/XG70td/W1UwbjAJcdmp8ktZGYR0JXM37hYA9Xq/aKwu7d0FTL6WdKTvt3L5VxL\nF6WNyLs65ZSbu+j8UEkwmoJ9h9Y0mLQmFtmkoh/HWOFyFDnBNiJX0vRb++RhJw6w\ncrSbqpbTu7z4vIep5lgSOut39P273SVTQZ3cGQIS+605Ur5wjkkSzzaJV1QLBBR9\nAQIDAQAB\n-----END PUBLIC KEY-----\n";
|
|
3
3
|
readonly jwt_issuer: "https://api.auditauth.com";
|
|
4
4
|
readonly domains: {
|
|
5
|
-
readonly api: "
|
|
6
|
-
readonly client: "
|
|
5
|
+
readonly api: "https://api.auditauth.com/v1";
|
|
6
|
+
readonly client: "https://auditauth.com";
|
|
7
7
|
};
|
|
8
8
|
readonly bff: {
|
|
9
9
|
readonly paths: {
|
package/dist/settings.js
CHANGED
|
@@ -2,8 +2,8 @@ const SETTINGS = {
|
|
|
2
2
|
jwt_public_key: "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAs2EYs4Q9OyjNuAEPqb4j\nIzc52JdfVcNvEbG43Xp8B2kI9QxwRyX7rtFSwKowj3W1BlCLaTIMK3TafWOf9QwH\nfemuL9Ni37PFcGptzpyuoCYYA650EuD82PENcO49lsObvty2cuXxQszbPPvAecm4\nJ/XG70td/W1UwbjAJcdmp8ktZGYR0JXM37hYA9Xq/aKwu7d0FTL6WdKTvt3L5VxL\nF6WNyLs65ZSbu+j8UEkwmoJ9h9Y0mLQmFtmkoh/HWOFyFDnBNiJX0vRb++RhJw6w\ncrSbqpbTu7z4vIep5lgSOut39P273SVTQZ3cGQIS+605Ur5wjkkSzzaJV1QLBBR9\nAQIDAQAB\n-----END PUBLIC KEY-----\n",
|
|
3
3
|
jwt_issuer: "https://api.auditauth.com",
|
|
4
4
|
domains: {
|
|
5
|
-
api: '
|
|
6
|
-
client: '
|
|
5
|
+
api: 'https://api.auditauth.com/v1',
|
|
6
|
+
client: 'https://auditauth.com',
|
|
7
7
|
},
|
|
8
8
|
bff: {
|
|
9
9
|
paths: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auditauth/next",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Official AuditAuth SDK for Next.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Nimibyte",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"react-dom": ">=18"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
+
"@auditauth/next": "^0.1.6",
|
|
29
30
|
"crypto": "^1.0.1",
|
|
30
31
|
"jose": "^5.2.0"
|
|
31
32
|
},
|