@aura-stack/auth 0.1.0-rc.7 → 0.1.0-rc.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/@types/index.cjs +15 -15
- package/dist/@types/index.d.ts +31 -7
- package/dist/@types/index.js +1 -1
- package/dist/@types/router.d.cjs +1 -1
- package/dist/@types/router.d.d.ts +7 -7
- package/dist/@types/utility.cjs +15 -15
- package/dist/@types/utility.d.ts +6 -6
- package/dist/@types/utility.js +1 -1
- package/dist/actions/callback/access-token.cjs +143 -143
- package/dist/actions/callback/access-token.d.ts +20 -15
- package/dist/actions/callback/access-token.js +4 -8
- package/dist/actions/callback/callback.cjs +455 -437
- package/dist/actions/callback/callback.d.ts +12 -10
- package/dist/actions/callback/callback.js +12 -16
- package/dist/actions/callback/userinfo.cjs +134 -131
- package/dist/actions/callback/userinfo.d.ts +9 -9
- package/dist/actions/callback/userinfo.js +6 -10
- package/dist/actions/csrfToken/csrfToken.cjs +171 -162
- package/dist/actions/csrfToken/csrfToken.d.ts +3 -3
- package/dist/actions/csrfToken/csrfToken.js +8 -12
- package/dist/actions/index.cjs +773 -746
- package/dist/actions/index.d.ts +13 -13
- package/dist/actions/index.js +18 -34
- package/dist/actions/session/session.cjs +155 -149
- package/dist/actions/session/session.d.ts +3 -3
- package/dist/actions/session/session.js +7 -11
- package/dist/actions/signIn/authorization.cjs +249 -231
- package/dist/actions/signIn/authorization.d.ts +18 -12
- package/dist/actions/signIn/authorization.js +6 -16
- package/dist/actions/signIn/signIn.cjs +423 -396
- package/dist/actions/signIn/signIn.d.ts +10 -10
- package/dist/actions/signIn/signIn.js +10 -14
- package/dist/actions/signOut/signOut.cjs +440 -417
- package/dist/actions/signOut/signOut.d.ts +3 -3
- package/dist/actions/signOut/signOut.js +11 -15
- package/dist/assert.cjs +36 -35
- package/dist/assert.d.ts +4 -4
- package/dist/assert.js +2 -10
- package/dist/chunk-256KIVJL.js +96 -85
- package/dist/chunk-42XB3YCW.js +17 -19
- package/dist/chunk-6SM22VVJ.js +10 -13
- package/dist/chunk-CAKJT3KS.js +69 -84
- package/dist/chunk-E3OXBRYF.js +17 -19
- package/dist/chunk-EBPE35JT.js +26 -28
- package/dist/chunk-FIPU4MLT.js +16 -18
- package/dist/chunk-FJUDBLCP.js +43 -50
- package/dist/chunk-FKRDCWBF.js +17 -19
- package/dist/chunk-GZU3RBTB.js +40 -51
- package/dist/chunk-HGJ4TXY4.js +100 -132
- package/dist/chunk-HMRKN75I.js +63 -63
- package/dist/chunk-IKHPGFCW.js +9 -11
- package/dist/chunk-JAPMIE6S.js +5 -7
- package/dist/chunk-KRNOMBXQ.js +17 -19
- package/dist/chunk-LLR722CL.js +70 -91
- package/dist/chunk-RLT4RFKV.js +30 -39
- package/dist/chunk-SJPDVKUS.js +88 -107
- package/dist/chunk-SMQO5WD7.js +16 -26
- package/dist/chunk-STHEPPUZ.js +6 -8
- package/dist/chunk-UJJ7R56J.js +37 -47
- package/dist/chunk-UTDLUEEG.js +25 -0
- package/dist/chunk-VFTYH33W.js +37 -54
- package/dist/chunk-XXJKNKGQ.js +23 -33
- package/dist/chunk-ZV4BH47P.js +134 -132
- package/dist/cookie.cjs +175 -169
- package/dist/cookie.d.ts +51 -23
- package/dist/cookie.js +34 -34
- package/dist/error.cjs +75 -75
- package/dist/error.d.ts +30 -30
- package/dist/error.js +8 -15
- package/dist/headers.cjs +28 -28
- package/dist/headers.d.ts +2 -2
- package/dist/headers.js +2 -6
- package/dist/index-DpfbvTZ_.d.ts +298 -249
- package/dist/index.cjs +969 -933
- package/dist/index.d.ts +31 -10
- package/dist/index.js +50 -70
- package/dist/jose.cjs +67 -52
- package/dist/jose.d.ts +8 -8
- package/dist/jose.js +5 -9
- package/dist/oauth/bitbucket.cjs +38 -38
- package/dist/oauth/bitbucket.d.ts +7 -7
- package/dist/oauth/bitbucket.js +2 -6
- package/dist/oauth/discord.cjs +48 -48
- package/dist/oauth/discord.d.ts +7 -7
- package/dist/oauth/discord.js +2 -6
- package/dist/oauth/figma.cjs +39 -39
- package/dist/oauth/figma.d.ts +7 -7
- package/dist/oauth/figma.js +2 -6
- package/dist/oauth/github.cjs +31 -31
- package/dist/oauth/github.d.ts +7 -7
- package/dist/oauth/github.js +2 -6
- package/dist/oauth/gitlab.cjs +39 -39
- package/dist/oauth/gitlab.d.ts +7 -7
- package/dist/oauth/gitlab.js +2 -6
- package/dist/oauth/index.cjs +180 -180
- package/dist/oauth/index.d.ts +26 -7
- package/dist/oauth/index.js +9 -36
- package/dist/oauth/spotify.cjs +39 -39
- package/dist/oauth/spotify.d.ts +7 -7
- package/dist/oauth/spotify.js +2 -6
- package/dist/oauth/x.cjs +39 -39
- package/dist/oauth/x.d.ts +7 -7
- package/dist/oauth/x.js +2 -6
- package/dist/response.cjs +27 -27
- package/dist/response.d.ts +2 -2
- package/dist/response.js +2 -6
- package/dist/schemas.cjs +91 -91
- package/dist/schemas.d.ts +126 -93
- package/dist/schemas.js +18 -18
- package/dist/secure.cjs +98 -95
- package/dist/secure.d.ts +17 -17
- package/dist/secure.js +4 -18
- package/dist/utils.cjs +132 -119
- package/dist/utils.d.ts +26 -11
- package/dist/utils.js +21 -21
- package/package.json +1 -1
- package/dist/chunk-X7M4CQTN.js +0 -25
package/dist/oauth/figma.cjs
CHANGED
|
@@ -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
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
7
|
+
for (var name in all) __defProp(target, name, { get: all[name], enumerable: true })
|
|
8
|
+
}
|
|
10
9
|
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod)
|
|
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)
|
|
19
18
|
|
|
20
19
|
// src/oauth/figma.ts
|
|
21
|
-
var figma_exports = {}
|
|
20
|
+
var figma_exports = {}
|
|
22
21
|
__export(figma_exports, {
|
|
23
|
-
|
|
24
|
-
})
|
|
25
|
-
module.exports = __toCommonJS(figma_exports)
|
|
22
|
+
figma: () => figma,
|
|
23
|
+
})
|
|
24
|
+
module.exports = __toCommonJS(figma_exports)
|
|
26
25
|
var figma = {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
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
|
+
}
|
|
43
42
|
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
-
0 &&
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
0 &&
|
|
44
|
+
(module.exports = {
|
|
45
|
+
figma,
|
|
46
|
+
})
|
package/dist/oauth/figma.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { F as FigmaProfile, j as figma } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
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"
|
package/dist/oauth/figma.js
CHANGED
package/dist/oauth/github.cjs
CHANGED
|
@@ -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
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
7
|
+
for (var name in all) __defProp(target, name, { get: all[name], enumerable: true })
|
|
8
|
+
}
|
|
10
9
|
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod)
|
|
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)
|
|
19
18
|
|
|
20
19
|
// src/oauth/github.ts
|
|
21
|
-
var github_exports = {}
|
|
20
|
+
var github_exports = {}
|
|
22
21
|
__export(github_exports, {
|
|
23
|
-
|
|
24
|
-
})
|
|
25
|
-
module.exports = __toCommonJS(github_exports)
|
|
22
|
+
github: () => github,
|
|
23
|
+
})
|
|
24
|
+
module.exports = __toCommonJS(github_exports)
|
|
26
25
|
var github = {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
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
|
+
}
|
|
35
34
|
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
-
0 &&
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
0 &&
|
|
36
|
+
(module.exports = {
|
|
37
|
+
github,
|
|
38
|
+
})
|
package/dist/oauth/github.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { l as GitHubProfile, m as github } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
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"
|
package/dist/oauth/github.js
CHANGED
package/dist/oauth/gitlab.cjs
CHANGED
|
@@ -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
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
7
|
+
for (var name in all) __defProp(target, name, { get: all[name], enumerable: true })
|
|
8
|
+
}
|
|
10
9
|
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod)
|
|
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)
|
|
19
18
|
|
|
20
19
|
// src/oauth/gitlab.ts
|
|
21
|
-
var gitlab_exports = {}
|
|
20
|
+
var gitlab_exports = {}
|
|
22
21
|
__export(gitlab_exports, {
|
|
23
|
-
|
|
24
|
-
})
|
|
25
|
-
module.exports = __toCommonJS(gitlab_exports)
|
|
22
|
+
gitlab: () => gitlab,
|
|
23
|
+
})
|
|
24
|
+
module.exports = __toCommonJS(gitlab_exports)
|
|
26
25
|
var gitlab = {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
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
|
+
}
|
|
43
42
|
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
-
0 &&
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
0 &&
|
|
44
|
+
(module.exports = {
|
|
45
|
+
gitlab,
|
|
46
|
+
})
|
package/dist/oauth/gitlab.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { G as GitLabProfile, h as gitlab } from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
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"
|
package/dist/oauth/gitlab.js
CHANGED