@aura-stack/auth 0.4.0-rc.1 → 0.4.0-rc.3
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.d.ts +1 -1
- package/dist/@types/router.d.cjs +17 -0
- package/dist/@types/router.d.d.ts +1 -1
- package/dist/@types/router.d.js +1 -0
- package/dist/actions/callback/access-token.d.ts +1 -1
- package/dist/actions/callback/callback.d.ts +1 -1
- package/dist/actions/callback/userinfo.d.ts +1 -1
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.js +7 -7
- package/dist/actions/signIn/authorization.d.ts +1 -1
- package/dist/actions/signIn/signIn.d.ts +1 -1
- package/dist/assert.d.ts +1 -1
- package/dist/chunk-DIVDFNAP.js +0 -0
- package/dist/cookie.d.ts +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/{index-B8jeIElf.d.ts → index-DkaLJFn8.d.ts} +1 -1
- package/dist/index.d.ts +6 -61
- package/dist/index.js +8 -7
- package/dist/oauth/bitbucket.d.ts +1 -1
- package/dist/oauth/discord.d.ts +1 -1
- package/dist/oauth/figma.d.ts +1 -1
- package/dist/oauth/github.d.ts +1 -1
- package/dist/oauth/gitlab.d.ts +1 -1
- package/dist/oauth/index.d.ts +1 -1
- package/dist/oauth/mailchimp.d.ts +1 -1
- package/dist/oauth/pinterest.d.ts +1 -1
- package/dist/oauth/spotify.d.ts +1 -1
- package/dist/oauth/strava.d.ts +1 -1
- package/dist/oauth/x.d.ts +1 -1
- package/dist/secure.d.ts +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +1 -1
package/dist/@types/index.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import '../schemas.js';
|
|
|
3
3
|
import '@aura-stack/router/cookie';
|
|
4
4
|
import '@aura-stack/jose';
|
|
5
5
|
import '@aura-stack/jose/jose';
|
|
6
|
-
export { i as APIErrorMap, a0 as AccessTokenError, d as AuthConfig,
|
|
6
|
+
export { i as APIErrorMap, a0 as AccessTokenError, d as AuthConfig, e as AuthInstance, b as AuthInternalErrorCode, A as AuthRuntimeConfig, c as AuthSecurityErrorCode, $ as AuthorizationError, C as CookieConfig, Z as CookieName, a as CookieStoreConfig, Y as CookieStrategyAttributes, E as ErrorType, V as HostCookie, J as JWTPayloadWithToken, Q as JWTStandardClaims, f as JoseInstance, a2 as OAuthEnv, _ as OAuthError, O as OAuthProvider, g as OAuthProviderConfig, h as OAuthProviderCredentials, j as OAuthProviderRecord, R as RouterGlobalContext, T as SecureCookie, S as Session, W as StandardCookie, a1 as TokenRevocationError, U as User } from '../index-DkaLJFn8.js';
|
|
7
7
|
export { LiteralUnion, Prettify } from './utility.js';
|
package/dist/@types/router.d.cjs
CHANGED
|
@@ -1 +1,18 @@
|
|
|
1
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
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/@types/router.d.ts
|
|
17
|
+
var router_d_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(router_d_exports);
|
package/dist/@types/router.d.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../chunk-DIVDFNAP.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _aura_stack_router from '@aura-stack/router';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { j as OAuthProviderRecord } from '../../index-
|
|
3
|
+
import { j as OAuthProviderRecord } from '../../index-DkaLJFn8.js';
|
|
4
4
|
import '../../schemas.js';
|
|
5
5
|
import '@aura-stack/router/cookie';
|
|
6
6
|
import '@aura-stack/jose';
|
package/dist/actions/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { signOutAction } from './signOut/signOut.js';
|
|
|
5
5
|
export { csrfTokenAction } from './csrfToken/csrfToken.js';
|
|
6
6
|
import '@aura-stack/router';
|
|
7
7
|
import 'zod';
|
|
8
|
-
import '../index-
|
|
8
|
+
import '../index-DkaLJFn8.js';
|
|
9
9
|
import '../schemas.js';
|
|
10
10
|
import '@aura-stack/router/cookie';
|
|
11
11
|
import '@aura-stack/jose';
|
package/dist/actions/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import "../chunk-ITQ7352M.js";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../chunk-
|
|
3
|
+
signOutAction
|
|
4
|
+
} from "../chunk-A3N4PVAT.js";
|
|
5
5
|
import {
|
|
6
6
|
callbackAction
|
|
7
7
|
} from "../chunk-KSWLO5ZU.js";
|
|
8
8
|
import "../chunk-GA2SMTJO.js";
|
|
9
9
|
import "../chunk-IVET23KF.js";
|
|
10
|
-
import {
|
|
11
|
-
sessionAction
|
|
12
|
-
} from "../chunk-JVFTCTTE.js";
|
|
13
10
|
import {
|
|
14
11
|
csrfTokenAction
|
|
15
12
|
} from "../chunk-HT4YLL7N.js";
|
|
16
13
|
import {
|
|
17
|
-
|
|
18
|
-
} from "../chunk-
|
|
14
|
+
sessionAction
|
|
15
|
+
} from "../chunk-JVFTCTTE.js";
|
|
16
|
+
import {
|
|
17
|
+
signInAction
|
|
18
|
+
} from "../chunk-3EUWD5BB.js";
|
|
19
19
|
import "../chunk-N4SX7TZT.js";
|
|
20
20
|
import "../chunk-W6LG7BFW.js";
|
|
21
21
|
import "../chunk-STHEPPUZ.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _aura_stack_router from '@aura-stack/router';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { j as OAuthProviderRecord } from '../../index-
|
|
3
|
+
import { j as OAuthProviderRecord } from '../../index-DkaLJFn8.js';
|
|
4
4
|
import '../../schemas.js';
|
|
5
5
|
import '@aura-stack/router/cookie';
|
|
6
6
|
import '@aura-stack/jose';
|
package/dist/assert.d.ts
CHANGED
|
File without changes
|
package/dist/cookie.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SerializeOptions } from '@aura-stack/router/cookie';
|
|
2
2
|
import { JWTPayload } from '@aura-stack/jose/jose';
|
|
3
|
-
import { A as AuthRuntimeConfig, C as CookieConfig, a as CookieStoreConfig } from './index-
|
|
3
|
+
import { A as AuthRuntimeConfig, C as CookieConfig, a as CookieStoreConfig } from './index-DkaLJFn8.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import './schemas.js';
|
|
6
6
|
import '@aura-stack/jose';
|
package/dist/errors.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as ErrorType, b as AuthInternalErrorCode, c as AuthSecurityErrorCode } from './index-
|
|
1
|
+
import { E as ErrorType, b as AuthInternalErrorCode, c as AuthSecurityErrorCode } from './index-DkaLJFn8.js';
|
|
2
2
|
import { LiteralUnion } from './@types/utility.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import './schemas.js';
|
|
@@ -676,4 +676,4 @@ type APIErrorMap = Record<string, {
|
|
|
676
676
|
message: string;
|
|
677
677
|
}>;
|
|
678
678
|
|
|
679
|
-
export { type AuthorizationError as $, type AuthRuntimeConfig as A, type BitbucketProfile as B, type CookieConfig as C, type DiscordProfile as D, type ErrorType as E, type FigmaProfile as F, type GitLabProfile as G, createBuiltInOAuthProviders as H, type Image as I, type JWTPayloadWithToken as J, type BuiltInOAuthProvider as K, type Login as L, type MailchimpProfile as M, type Nameplate as N, type OAuthProvider as O, type PinterestProfile as P, type JWTStandardClaims as Q, type RouterGlobalContext as R, type Session as S, type SecureCookie as T, type User as U, type HostCookie as V, type StandardCookie as W, type XProfile as X, type CookieStrategyAttributes as Y, type CookieName as Z, type OAuthError as _, type CookieStoreConfig as a, type AccessTokenError as a0, type TokenRevocationError as a1, type OAuthEnv as a2, type AuthInternalErrorCode as b, type AuthSecurityErrorCode as c, type AuthConfig as d, type
|
|
679
|
+
export { type AuthorizationError as $, type AuthRuntimeConfig as A, type BitbucketProfile as B, type CookieConfig as C, type DiscordProfile as D, type ErrorType as E, type FigmaProfile as F, type GitLabProfile as G, createBuiltInOAuthProviders as H, type Image as I, type JWTPayloadWithToken as J, type BuiltInOAuthProvider as K, type Login as L, type MailchimpProfile as M, type Nameplate as N, type OAuthProvider as O, type PinterestProfile as P, type JWTStandardClaims as Q, type RouterGlobalContext as R, type Session as S, type SecureCookie as T, type User as U, type HostCookie as V, type StandardCookie as W, type XProfile as X, type CookieStrategyAttributes as Y, type CookieName as Z, type OAuthError as _, type CookieStoreConfig as a, type AccessTokenError as a0, type TokenRevocationError as a1, type OAuthEnv as a2, type AuthInternalErrorCode as b, type AuthSecurityErrorCode as c, type AuthConfig as d, type AuthInstance as e, type JoseInstance as f, type OAuthProviderConfig as g, type OAuthProviderCredentials as h, type APIErrorMap as i, type OAuthProviderRecord as j, type SummaryClub as k, type SummaryGear as l, mailchimp as m, type StravaProfile as n, type SpotifyProfile as o, pinterest as p, spotify as q, gitlab as r, strava as s, discord as t, figma as u, bitbucket as v, type GitHubProfile as w, x, github as y, builtInOAuthProviders as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { d as AuthConfig, e as JoseInstance } from './index-
|
|
2
|
-
export {
|
|
3
|
-
import * as _aura_stack_router from '@aura-stack/router';
|
|
1
|
+
import { d as AuthConfig, e as AuthInstance, f as JoseInstance } from './index-DkaLJFn8.js';
|
|
2
|
+
export { C as CookieConfig, E as ErrorType, O as OAuthProvider, g as OAuthProviderConfig, h as OAuthProviderCredentials, S as Session, U as User } from './index-DkaLJFn8.js';
|
|
4
3
|
export { createClient } from '@aura-stack/router';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import './@types/router.d.js';
|
|
5
|
+
import 'zod';
|
|
7
6
|
import './schemas.js';
|
|
8
7
|
import '@aura-stack/router/cookie';
|
|
9
8
|
import '@aura-stack/jose';
|
|
@@ -33,62 +32,8 @@ import './@types/utility.js';
|
|
|
33
32
|
* })
|
|
34
33
|
*/
|
|
35
34
|
declare const createAuth: (authConfig: AuthConfig) => {
|
|
36
|
-
handlers:
|
|
37
|
-
schemas?: {
|
|
38
|
-
params: zod.ZodObject<{
|
|
39
|
-
oauth: zod.ZodEnum<{
|
|
40
|
-
[x: string & Record<never, never>]: string & Record<never, never>;
|
|
41
|
-
github: "github";
|
|
42
|
-
bitbucket: "bitbucket";
|
|
43
|
-
figma: "figma";
|
|
44
|
-
discord: "discord";
|
|
45
|
-
gitlab: "gitlab";
|
|
46
|
-
spotify: "spotify";
|
|
47
|
-
x: "x";
|
|
48
|
-
strava: "strava";
|
|
49
|
-
mailchimp: "mailchimp";
|
|
50
|
-
pinterest: "pinterest";
|
|
51
|
-
}>;
|
|
52
|
-
}, zod_v4_core.$strip>;
|
|
53
|
-
searchParams: zod.ZodObject<{
|
|
54
|
-
redirectTo: zod.ZodOptional<zod.ZodString>;
|
|
55
|
-
}, zod_v4_core.$strip>;
|
|
56
|
-
} | undefined;
|
|
57
|
-
}>, _aura_stack_router.RouteEndpoint<"GET", "/callback/:oauth", {
|
|
58
|
-
schemas?: {
|
|
59
|
-
params: zod.ZodObject<{
|
|
60
|
-
oauth: zod.ZodEnum<{
|
|
61
|
-
[x: string & Record<never, never>]: string & Record<never, never>;
|
|
62
|
-
github: "github";
|
|
63
|
-
bitbucket: "bitbucket";
|
|
64
|
-
figma: "figma";
|
|
65
|
-
discord: "discord";
|
|
66
|
-
gitlab: "gitlab";
|
|
67
|
-
spotify: "spotify";
|
|
68
|
-
x: "x";
|
|
69
|
-
strava: "strava";
|
|
70
|
-
mailchimp: "mailchimp";
|
|
71
|
-
pinterest: "pinterest";
|
|
72
|
-
}>;
|
|
73
|
-
}, zod_v4_core.$strip>;
|
|
74
|
-
searchParams: zod.ZodObject<{
|
|
75
|
-
code: zod.ZodString;
|
|
76
|
-
state: zod.ZodString;
|
|
77
|
-
}, zod_v4_core.$strip>;
|
|
78
|
-
} | undefined;
|
|
79
|
-
}>, _aura_stack_router.RouteEndpoint<"GET", "/session", {
|
|
80
|
-
schemas?: _aura_stack_router.EndpointSchemas | undefined;
|
|
81
|
-
}>, _aura_stack_router.RouteEndpoint<"POST", "/signOut", {
|
|
82
|
-
schemas?: {
|
|
83
|
-
searchParams: zod.ZodObject<{
|
|
84
|
-
token_type_hint: zod.ZodLiteral<"session_token">;
|
|
85
|
-
redirectTo: zod.ZodOptional<zod.ZodString>;
|
|
86
|
-
}, zod_v4_core.$strip>;
|
|
87
|
-
} | undefined;
|
|
88
|
-
}>, _aura_stack_router.RouteEndpoint<"GET", "/csrfToken", {
|
|
89
|
-
schemas?: _aura_stack_router.EndpointSchemas | undefined;
|
|
90
|
-
}>]>;
|
|
35
|
+
handlers: AuthInstance["handlers"];
|
|
91
36
|
jose: JoseInstance;
|
|
92
37
|
};
|
|
93
38
|
|
|
94
|
-
export { AuthConfig, JoseInstance, createAuth };
|
|
39
|
+
export { AuthConfig, AuthInstance, JoseInstance, createAuth };
|
package/dist/index.js
CHANGED
|
@@ -9,24 +9,25 @@ import "./chunk-B737EUJV.js";
|
|
|
9
9
|
import "./chunk-HP34YGGJ.js";
|
|
10
10
|
import "./chunk-E3OXBRYF.js";
|
|
11
11
|
import "./chunk-6R2YZ4AC.js";
|
|
12
|
+
import "./chunk-DIVDFNAP.js";
|
|
12
13
|
import "./chunk-ITQ7352M.js";
|
|
13
14
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
signOutAction
|
|
16
|
+
} from "./chunk-A3N4PVAT.js";
|
|
16
17
|
import {
|
|
17
18
|
callbackAction
|
|
18
19
|
} from "./chunk-KSWLO5ZU.js";
|
|
19
20
|
import "./chunk-GA2SMTJO.js";
|
|
20
21
|
import "./chunk-IVET23KF.js";
|
|
21
|
-
import {
|
|
22
|
-
sessionAction
|
|
23
|
-
} from "./chunk-JVFTCTTE.js";
|
|
24
22
|
import {
|
|
25
23
|
csrfTokenAction
|
|
26
24
|
} from "./chunk-HT4YLL7N.js";
|
|
27
25
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./chunk-
|
|
26
|
+
sessionAction
|
|
27
|
+
} from "./chunk-JVFTCTTE.js";
|
|
28
|
+
import {
|
|
29
|
+
signInAction
|
|
30
|
+
} from "./chunk-3EUWD5BB.js";
|
|
30
31
|
import "./chunk-N4SX7TZT.js";
|
|
31
32
|
import "./chunk-FIPU4MLT.js";
|
|
32
33
|
import "./chunk-IUYZQTJV.js";
|
package/dist/oauth/discord.d.ts
CHANGED
package/dist/oauth/figma.d.ts
CHANGED
package/dist/oauth/github.d.ts
CHANGED
package/dist/oauth/gitlab.d.ts
CHANGED
package/dist/oauth/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BitbucketProfile, K as BuiltInOAuthProvider, D as DiscordProfile, F as FigmaProfile, w as GitHubProfile, G as GitLabProfile, I as Image, L as Login, M as MailchimpProfile, N as Nameplate, P as PinterestProfile, o as SpotifyProfile, n as StravaProfile, k as SummaryClub, l as SummaryGear, X as XProfile, v as bitbucket, z as builtInOAuthProviders, H as createBuiltInOAuthProviders, t as discord, u as figma, y as github, r as gitlab, m as mailchimp, p as pinterest, q as spotify, s as strava, x } from '../index-
|
|
1
|
+
export { B as BitbucketProfile, K as BuiltInOAuthProvider, D as DiscordProfile, F as FigmaProfile, w as GitHubProfile, G as GitLabProfile, I as Image, L as Login, M as MailchimpProfile, N as Nameplate, P as PinterestProfile, o as SpotifyProfile, n as StravaProfile, k as SummaryClub, l as SummaryGear, X as XProfile, v as bitbucket, z as builtInOAuthProviders, H as createBuiltInOAuthProviders, t as discord, u as figma, y as github, r as gitlab, m as mailchimp, p as pinterest, q as spotify, s as strava, x } from '../index-DkaLJFn8.js';
|
|
2
2
|
import '../@types/utility.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../schemas.js';
|
package/dist/oauth/spotify.d.ts
CHANGED
package/dist/oauth/strava.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { n as StravaProfile, k as SummaryClub, l as SummaryGear, s as strava } from '../index-
|
|
1
|
+
export { n as StravaProfile, k as SummaryClub, l as SummaryGear, s as strava } from '../index-DkaLJFn8.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import '../schemas.js';
|
|
4
4
|
import '@aura-stack/router/cookie';
|
package/dist/oauth/x.d.ts
CHANGED
package/dist/secure.d.ts
CHANGED
package/dist/utils.d.ts
CHANGED