@aura-stack/auth 0.1.0-rc.8 → 0.1.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.
Files changed (116) hide show
  1. package/dist/@types/index.cjs +15 -15
  2. package/dist/@types/index.d.ts +7 -31
  3. package/dist/@types/index.js +1 -1
  4. package/dist/@types/router.d.cjs +1 -1
  5. package/dist/@types/router.d.d.ts +7 -7
  6. package/dist/@types/utility.cjs +15 -15
  7. package/dist/@types/utility.d.ts +6 -6
  8. package/dist/@types/utility.js +1 -1
  9. package/dist/actions/callback/access-token.cjs +143 -143
  10. package/dist/actions/callback/access-token.d.ts +15 -20
  11. package/dist/actions/callback/access-token.js +8 -4
  12. package/dist/actions/callback/callback.cjs +437 -455
  13. package/dist/actions/callback/callback.d.ts +10 -12
  14. package/dist/actions/callback/callback.js +16 -12
  15. package/dist/actions/callback/userinfo.cjs +131 -134
  16. package/dist/actions/callback/userinfo.d.ts +9 -9
  17. package/dist/actions/callback/userinfo.js +10 -6
  18. package/dist/actions/csrfToken/csrfToken.cjs +162 -171
  19. package/dist/actions/csrfToken/csrfToken.d.ts +3 -3
  20. package/dist/actions/csrfToken/csrfToken.js +12 -8
  21. package/dist/actions/index.cjs +746 -773
  22. package/dist/actions/index.d.ts +13 -13
  23. package/dist/actions/index.js +34 -18
  24. package/dist/actions/session/session.cjs +149 -155
  25. package/dist/actions/session/session.d.ts +3 -3
  26. package/dist/actions/session/session.js +11 -7
  27. package/dist/actions/signIn/authorization.cjs +231 -249
  28. package/dist/actions/signIn/authorization.d.ts +12 -18
  29. package/dist/actions/signIn/authorization.js +16 -6
  30. package/dist/actions/signIn/signIn.cjs +396 -423
  31. package/dist/actions/signIn/signIn.d.ts +10 -10
  32. package/dist/actions/signIn/signIn.js +14 -10
  33. package/dist/actions/signOut/signOut.cjs +417 -440
  34. package/dist/actions/signOut/signOut.d.ts +3 -3
  35. package/dist/actions/signOut/signOut.js +15 -11
  36. package/dist/assert.cjs +35 -36
  37. package/dist/assert.d.ts +4 -4
  38. package/dist/assert.js +10 -2
  39. package/dist/chunk-256KIVJL.js +85 -96
  40. package/dist/chunk-42XB3YCW.js +19 -17
  41. package/dist/chunk-6SM22VVJ.js +13 -10
  42. package/dist/chunk-CAKJT3KS.js +84 -69
  43. package/dist/chunk-E3OXBRYF.js +19 -17
  44. package/dist/chunk-EBPE35JT.js +28 -26
  45. package/dist/chunk-FIPU4MLT.js +18 -16
  46. package/dist/chunk-FJUDBLCP.js +50 -43
  47. package/dist/chunk-FKRDCWBF.js +19 -17
  48. package/dist/chunk-GZU3RBTB.js +51 -40
  49. package/dist/chunk-HGJ4TXY4.js +132 -100
  50. package/dist/chunk-HMRKN75I.js +63 -63
  51. package/dist/chunk-IKHPGFCW.js +11 -9
  52. package/dist/chunk-JAPMIE6S.js +7 -5
  53. package/dist/chunk-KRNOMBXQ.js +19 -17
  54. package/dist/chunk-LLR722CL.js +91 -70
  55. package/dist/chunk-RLT4RFKV.js +39 -30
  56. package/dist/chunk-SJPDVKUS.js +107 -88
  57. package/dist/chunk-SMQO5WD7.js +26 -16
  58. package/dist/chunk-STHEPPUZ.js +8 -6
  59. package/dist/chunk-UJJ7R56J.js +47 -37
  60. package/dist/chunk-UTDLUEEG.js +27 -21
  61. package/dist/chunk-VFTYH33W.js +54 -37
  62. package/dist/chunk-XXJKNKGQ.js +33 -23
  63. package/dist/chunk-ZV4BH47P.js +132 -134
  64. package/dist/cookie.cjs +169 -175
  65. package/dist/cookie.d.ts +23 -51
  66. package/dist/cookie.js +34 -34
  67. package/dist/error.cjs +75 -75
  68. package/dist/error.d.ts +30 -30
  69. package/dist/error.js +15 -8
  70. package/dist/headers.cjs +28 -28
  71. package/dist/headers.d.ts +2 -2
  72. package/dist/headers.js +6 -2
  73. package/dist/index-DpfbvTZ_.d.ts +249 -298
  74. package/dist/index.cjs +936 -969
  75. package/dist/index.d.ts +10 -31
  76. package/dist/index.js +70 -50
  77. package/dist/jose.cjs +61 -64
  78. package/dist/jose.d.ts +8 -8
  79. package/dist/jose.js +9 -5
  80. package/dist/oauth/bitbucket.cjs +38 -38
  81. package/dist/oauth/bitbucket.d.ts +7 -7
  82. package/dist/oauth/bitbucket.js +6 -2
  83. package/dist/oauth/discord.cjs +48 -48
  84. package/dist/oauth/discord.d.ts +7 -7
  85. package/dist/oauth/discord.js +6 -2
  86. package/dist/oauth/figma.cjs +39 -39
  87. package/dist/oauth/figma.d.ts +7 -7
  88. package/dist/oauth/figma.js +6 -2
  89. package/dist/oauth/github.cjs +31 -31
  90. package/dist/oauth/github.d.ts +7 -7
  91. package/dist/oauth/github.js +6 -2
  92. package/dist/oauth/gitlab.cjs +39 -39
  93. package/dist/oauth/gitlab.d.ts +7 -7
  94. package/dist/oauth/gitlab.js +6 -2
  95. package/dist/oauth/index.cjs +180 -180
  96. package/dist/oauth/index.d.ts +7 -26
  97. package/dist/oauth/index.js +36 -9
  98. package/dist/oauth/spotify.cjs +39 -39
  99. package/dist/oauth/spotify.d.ts +7 -7
  100. package/dist/oauth/spotify.js +6 -2
  101. package/dist/oauth/x.cjs +39 -39
  102. package/dist/oauth/x.d.ts +7 -7
  103. package/dist/oauth/x.js +6 -2
  104. package/dist/response.cjs +27 -27
  105. package/dist/response.d.ts +2 -2
  106. package/dist/response.js +6 -2
  107. package/dist/schemas.cjs +91 -91
  108. package/dist/schemas.d.ts +93 -126
  109. package/dist/schemas.js +18 -18
  110. package/dist/secure.cjs +95 -98
  111. package/dist/secure.d.ts +17 -17
  112. package/dist/secure.js +18 -4
  113. package/dist/utils.cjs +119 -132
  114. package/dist/utils.d.ts +11 -26
  115. package/dist/utils.js +21 -21
  116. package/package.json +2 -2
@@ -1,46 +1,46 @@
1
- "use strict"
2
- var __defProp = Object.defineProperty
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor
4
- var __getOwnPropNames = Object.getOwnPropertyNames
5
- var __hasOwnProp = Object.prototype.hasOwnProperty
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
6
  var __export = (target, all) => {
7
- for (var name in all) __defProp(target, name, { get: all[name], enumerable: true })
8
- }
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
9
10
  var __copyProps = (to, from, except, desc) => {
10
- if ((from && typeof from === "object") || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable })
14
- }
15
- return to
16
- }
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod)
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
19
 
19
20
  // src/oauth/figma.ts
20
- var figma_exports = {}
21
+ var figma_exports = {};
21
22
  __export(figma_exports, {
22
- figma: () => figma,
23
- })
24
- module.exports = __toCommonJS(figma_exports)
23
+ figma: () => figma
24
+ });
25
+ module.exports = __toCommonJS(figma_exports);
25
26
  var figma = {
26
- id: "figma",
27
- name: "Figma",
28
- authorizeURL: "https://www.figma.com/oauth",
29
- accessToken: "https://api.figma.com/v1/oauth/token",
30
- userInfo: "https://api.figma.com/v1/me",
31
- scope: "current_user:read",
32
- responseType: "code",
33
- profile(profile) {
34
- return {
35
- sub: profile.id,
36
- name: profile.handle,
37
- email: profile.email,
38
- image: profile.img_url,
39
- }
40
- },
41
- }
27
+ id: "figma",
28
+ name: "Figma",
29
+ authorizeURL: "https://www.figma.com/oauth",
30
+ accessToken: "https://api.figma.com/v1/oauth/token",
31
+ userInfo: "https://api.figma.com/v1/me",
32
+ scope: "current_user:read",
33
+ responseType: "code",
34
+ profile(profile) {
35
+ return {
36
+ sub: profile.id,
37
+ name: profile.handle,
38
+ email: profile.email,
39
+ image: profile.img_url
40
+ };
41
+ }
42
+ };
42
43
  // Annotate the CommonJS export names for ESM import in node:
43
- 0 &&
44
- (module.exports = {
45
- figma,
46
- })
44
+ 0 && (module.exports = {
45
+ figma
46
+ });
@@ -1,7 +1,7 @@
1
- export { F as FigmaProfile, j as figma } from "../index-DpfbvTZ_.js"
2
- import "zod/v4"
3
- import "@aura-stack/jose/jose"
4
- import "../schemas.js"
5
- import "zod/v4/core"
6
- import "cookie"
7
- import "../@types/utility.js"
1
+ export { F as FigmaProfile, j as figma } from '../index-DpfbvTZ_.js';
2
+ import 'zod/v4';
3
+ import '@aura-stack/jose/jose';
4
+ import '../schemas.js';
5
+ import 'zod/v4/core';
6
+ import 'cookie';
7
+ import '../@types/utility.js';
@@ -1,2 +1,6 @@
1
- import { figma } from "../chunk-FKRDCWBF.js"
2
- export { figma }
1
+ import {
2
+ figma
3
+ } from "../chunk-FKRDCWBF.js";
4
+ export {
5
+ figma
6
+ };
@@ -1,38 +1,38 @@
1
- "use strict"
2
- var __defProp = Object.defineProperty
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor
4
- var __getOwnPropNames = Object.getOwnPropertyNames
5
- var __hasOwnProp = Object.prototype.hasOwnProperty
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
6
  var __export = (target, all) => {
7
- for (var name in all) __defProp(target, name, { get: all[name], enumerable: true })
8
- }
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
9
10
  var __copyProps = (to, from, except, desc) => {
10
- if ((from && typeof from === "object") || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable })
14
- }
15
- return to
16
- }
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod)
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
19
 
19
20
  // src/oauth/github.ts
20
- var github_exports = {}
21
+ var github_exports = {};
21
22
  __export(github_exports, {
22
- github: () => github,
23
- })
24
- module.exports = __toCommonJS(github_exports)
23
+ github: () => github
24
+ });
25
+ module.exports = __toCommonJS(github_exports);
25
26
  var github = {
26
- id: "github",
27
- name: "GitHub",
28
- authorizeURL: "https://github.com/login/oauth/authorize",
29
- accessToken: "https://github.com/login/oauth/access_token",
30
- userInfo: "https://api.github.com/user",
31
- scope: "read:user user:email",
32
- responseType: "code",
33
- }
27
+ id: "github",
28
+ name: "GitHub",
29
+ authorizeURL: "https://github.com/login/oauth/authorize",
30
+ accessToken: "https://github.com/login/oauth/access_token",
31
+ userInfo: "https://api.github.com/user",
32
+ scope: "read:user user:email",
33
+ responseType: "code"
34
+ };
34
35
  // Annotate the CommonJS export names for ESM import in node:
35
- 0 &&
36
- (module.exports = {
37
- github,
38
- })
36
+ 0 && (module.exports = {
37
+ github
38
+ });
@@ -1,7 +1,7 @@
1
- export { l as GitHubProfile, m as github } from "../index-DpfbvTZ_.js"
2
- import "zod/v4"
3
- import "@aura-stack/jose/jose"
4
- import "../schemas.js"
5
- import "zod/v4/core"
6
- import "cookie"
7
- import "../@types/utility.js"
1
+ export { l as GitHubProfile, m as github } from '../index-DpfbvTZ_.js';
2
+ import 'zod/v4';
3
+ import '@aura-stack/jose/jose';
4
+ import '../schemas.js';
5
+ import 'zod/v4/core';
6
+ import 'cookie';
7
+ import '../@types/utility.js';
@@ -1,2 +1,6 @@
1
- import { github } from "../chunk-IKHPGFCW.js"
2
- export { github }
1
+ import {
2
+ github
3
+ } from "../chunk-IKHPGFCW.js";
4
+ export {
5
+ github
6
+ };
@@ -1,46 +1,46 @@
1
- "use strict"
2
- var __defProp = Object.defineProperty
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor
4
- var __getOwnPropNames = Object.getOwnPropertyNames
5
- var __hasOwnProp = Object.prototype.hasOwnProperty
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
6
  var __export = (target, all) => {
7
- for (var name in all) __defProp(target, name, { get: all[name], enumerable: true })
8
- }
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
9
10
  var __copyProps = (to, from, except, desc) => {
10
- if ((from && typeof from === "object") || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable })
14
- }
15
- return to
16
- }
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod)
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
19
 
19
20
  // src/oauth/gitlab.ts
20
- var gitlab_exports = {}
21
+ var gitlab_exports = {};
21
22
  __export(gitlab_exports, {
22
- gitlab: () => gitlab,
23
- })
24
- module.exports = __toCommonJS(gitlab_exports)
23
+ gitlab: () => gitlab
24
+ });
25
+ module.exports = __toCommonJS(gitlab_exports);
25
26
  var gitlab = {
26
- id: "gitlab",
27
- name: "GitLab",
28
- authorizeURL: "https://gitlab.com/oauth/authorize",
29
- accessToken: "https://gitlab.com/oauth/token",
30
- userInfo: "https://gitlab.com/api/v4/user",
31
- scope: "read_user",
32
- responseType: "code",
33
- profile(profile) {
34
- return {
35
- sub: profile.id.toString(),
36
- name: profile.name ?? profile.username,
37
- email: profile.email,
38
- avatar: profile.avatar_url,
39
- }
40
- },
41
- }
27
+ id: "gitlab",
28
+ name: "GitLab",
29
+ authorizeURL: "https://gitlab.com/oauth/authorize",
30
+ accessToken: "https://gitlab.com/oauth/token",
31
+ userInfo: "https://gitlab.com/api/v4/user",
32
+ scope: "read_user",
33
+ responseType: "code",
34
+ profile(profile) {
35
+ return {
36
+ sub: profile.id.toString(),
37
+ name: profile.name ?? profile.username,
38
+ email: profile.email,
39
+ avatar: profile.avatar_url
40
+ };
41
+ }
42
+ };
42
43
  // Annotate the CommonJS export names for ESM import in node:
43
- 0 &&
44
- (module.exports = {
45
- gitlab,
46
- })
44
+ 0 && (module.exports = {
45
+ gitlab
46
+ });
@@ -1,7 +1,7 @@
1
- export { G as GitLabProfile, h as gitlab } from "../index-DpfbvTZ_.js"
2
- import "zod/v4"
3
- import "@aura-stack/jose/jose"
4
- import "../schemas.js"
5
- import "zod/v4/core"
6
- import "cookie"
7
- import "../@types/utility.js"
1
+ export { G as GitLabProfile, h as gitlab } from '../index-DpfbvTZ_.js';
2
+ import 'zod/v4';
3
+ import '@aura-stack/jose/jose';
4
+ import '../schemas.js';
5
+ import 'zod/v4/core';
6
+ import 'cookie';
7
+ import '../@types/utility.js';
@@ -1,2 +1,6 @@
1
- import { gitlab } from "../chunk-KRNOMBXQ.js"
2
- export { gitlab }
1
+ import {
2
+ gitlab
3
+ } from "../chunk-KRNOMBXQ.js";
4
+ export {
5
+ gitlab
6
+ };