@aura-stack/auth 0.1.0-rc.2 → 0.1.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.cts +1 -1
- package/dist/@types/index.d.ts +1 -1
- package/dist/@types/module.d.cts +1 -1
- package/dist/@types/module.d.ts +1 -1
- package/dist/@types/router.d.d.cts +2 -5
- package/dist/@types/router.d.d.ts +2 -5
- package/dist/actions/callback/access-token.d.cts +1 -1
- package/dist/actions/callback/access-token.d.ts +1 -1
- package/dist/actions/callback/callback.d.cts +1 -1
- package/dist/actions/callback/callback.d.ts +1 -1
- package/dist/actions/callback/userinfo.d.cts +1 -1
- package/dist/actions/callback/userinfo.d.ts +1 -1
- package/dist/actions/index.d.cts +1 -1
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/signIn/authorization.d.cts +1 -1
- package/dist/actions/signIn/authorization.d.ts +1 -1
- package/dist/actions/signIn/signIn.d.cts +1 -1
- package/dist/actions/signIn/signIn.d.ts +1 -1
- package/dist/cookie.d.ts +1 -1
- package/dist/error.d.ts +1 -1
- package/dist/{index-CGRZ0wrw.d.ts → index-BIop4-KU.d.ts} +26 -1
- package/dist/index.d.ts +4 -12
- package/dist/oauth/bitbucket.d.cts +1 -1
- package/dist/oauth/bitbucket.d.ts +1 -1
- package/dist/oauth/discord.d.cts +1 -1
- package/dist/oauth/discord.d.ts +1 -1
- package/dist/oauth/figma.d.cts +1 -1
- package/dist/oauth/figma.d.ts +1 -1
- package/dist/oauth/github.d.cts +1 -1
- package/dist/oauth/github.d.ts +1 -1
- package/dist/oauth/gitlab.d.cts +1 -1
- package/dist/oauth/gitlab.d.ts +1 -1
- package/dist/oauth/index.d.cts +1 -1
- package/dist/oauth/index.d.ts +1 -1
- package/dist/oauth/spotify.d.cts +1 -1
- package/dist/oauth/spotify.d.ts +1 -1
- package/dist/oauth/x.d.cts +1 -1
- package/dist/oauth/x.d.ts +1 -1
- package/dist/secure.d.ts +1 -1
- package/package.json +3 -3
package/dist/@types/index.d.cts
CHANGED
|
@@ -4,6 +4,6 @@ import '../schemas.cjs';
|
|
|
4
4
|
import '@aura-stack/router';
|
|
5
5
|
import 'cookie';
|
|
6
6
|
export { LiteralUnion, Prettify } from './utility.cjs';
|
|
7
|
-
export {
|
|
7
|
+
export { y as AccessTokenError, c as AuthConfig, d as AuthInstance, A as AuthRuntimeConfig, w as AuthorizationError, C as CookieConfig, a as CookieConfigInternal, b as CookieName, u as CookieStrategyOptions, E as ErrorType, H as HostCookie, n as JWTStandardClaims, J as JoseInstance, v as OAuthError, q as OAuthProvider, p as OAuthProviderConfig, O as OAuthProviderCredentials, R as RouterGlobalContext, r as SecureCookie, o as Session, t as StandardCookie, T as TokenRevocationError, U as User } from '../index-DtsgAA4Y.cjs';
|
|
8
8
|
import '@aura-stack/jose/jose';
|
|
9
9
|
import 'zod/v4/core';
|
package/dist/@types/index.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ import '../schemas.js';
|
|
|
4
4
|
import '@aura-stack/router';
|
|
5
5
|
import 'cookie';
|
|
6
6
|
export { LiteralUnion, Prettify } from './utility.js';
|
|
7
|
-
export {
|
|
7
|
+
export { y as AccessTokenError, c as AuthConfig, d as AuthInstance, A as AuthRuntimeConfig, w as AuthorizationError, C as CookieConfig, a as CookieConfigInternal, b as CookieName, u as CookieStrategyOptions, E as ErrorType, H as HostCookie, n as JWTStandardClaims, J as JoseInstance, v as OAuthError, q as OAuthProvider, p as OAuthProviderConfig, O as OAuthProviderCredentials, R as RouterGlobalContext, r as SecureCookie, o as Session, t as StandardCookie, T as TokenRevocationError, U as User } from '../index-BIop4-KU.js';
|
|
8
8
|
import '@aura-stack/jose/jose';
|
|
9
9
|
import 'zod/v4/core';
|
package/dist/@types/module.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as AuthConfig,
|
|
1
|
+
import { c as AuthConfig, e as createBuiltInOAuthProviders, J as JoseInstance } from '../index-DtsgAA4Y.cjs';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import '../jose.cjs';
|
|
4
4
|
import '@aura-stack/jose/jose';
|
package/dist/@types/module.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as AuthConfig,
|
|
1
|
+
import { c as AuthConfig, e as createBuiltInOAuthProviders, J as JoseInstance } from '../index-BIop4-KU.js';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import '../jose.js';
|
|
4
4
|
import '@aura-stack/jose/jose';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as RouterGlobalContext } from '../index-DtsgAA4Y.cjs';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import '../jose.cjs';
|
|
4
4
|
import '@aura-stack/jose/jose';
|
|
@@ -9,8 +9,5 @@ import 'cookie';
|
|
|
9
9
|
import './utility.cjs';
|
|
10
10
|
|
|
11
11
|
declare module "@aura-stack/router" {
|
|
12
|
-
interface GlobalContext extends
|
|
13
|
-
oauth: ReturnType<typeof createBuiltInOAuthProviders>
|
|
14
|
-
jose: JoseInstance
|
|
15
|
-
}
|
|
12
|
+
interface GlobalContext extends RouterGlobalContext {}
|
|
16
13
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as RouterGlobalContext } from '../index-BIop4-KU.js';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import '../jose.js';
|
|
4
4
|
import '@aura-stack/jose/jose';
|
|
@@ -9,8 +9,5 @@ import 'cookie';
|
|
|
9
9
|
import './utility.js';
|
|
10
10
|
|
|
11
11
|
declare module "@aura-stack/router" {
|
|
12
|
-
interface GlobalContext extends
|
|
13
|
-
oauth: ReturnType<typeof createBuiltInOAuthProviders>
|
|
14
|
-
jose: JoseInstance
|
|
15
|
-
}
|
|
12
|
+
interface GlobalContext extends RouterGlobalContext {}
|
|
16
13
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _aura_stack_router from '@aura-stack/router';
|
|
2
|
-
import { A as AuthRuntimeConfig } from '../../index-
|
|
2
|
+
import { A as AuthRuntimeConfig } from '../../index-DtsgAA4Y.cjs';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import '../../jose.cjs';
|
|
5
5
|
import '@aura-stack/jose/jose';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _aura_stack_router from '@aura-stack/router';
|
|
2
|
-
import { A as AuthRuntimeConfig } from '../../index-
|
|
2
|
+
import { A as AuthRuntimeConfig } from '../../index-BIop4-KU.js';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import '../../jose.js';
|
|
5
5
|
import '@aura-stack/jose/jose';
|
package/dist/actions/index.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ export { sessionAction } from './session/session.cjs';
|
|
|
4
4
|
export { signOutAction } from './signOut/signOut.cjs';
|
|
5
5
|
export { csrfTokenAction } from './csrfToken/csrfToken.cjs';
|
|
6
6
|
import '@aura-stack/router';
|
|
7
|
-
import '../index-
|
|
7
|
+
import '../index-DtsgAA4Y.cjs';
|
|
8
8
|
import 'zod/v4';
|
|
9
9
|
import '../jose.cjs';
|
|
10
10
|
import '@aura-stack/jose/jose';
|
package/dist/actions/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { sessionAction } from './session/session.js';
|
|
|
4
4
|
export { signOutAction } from './signOut/signOut.js';
|
|
5
5
|
export { csrfTokenAction } from './csrfToken/csrfToken.js';
|
|
6
6
|
import '@aura-stack/router';
|
|
7
|
-
import '../index-
|
|
7
|
+
import '../index-BIop4-KU.js';
|
|
8
8
|
import 'zod/v4';
|
|
9
9
|
import '../jose.js';
|
|
10
10
|
import '@aura-stack/jose/jose';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _aura_stack_router from '@aura-stack/router';
|
|
2
|
-
import { A as AuthRuntimeConfig } from '../../index-
|
|
2
|
+
import { A as AuthRuntimeConfig } from '../../index-DtsgAA4Y.cjs';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import '../../jose.cjs';
|
|
5
5
|
import '@aura-stack/jose/jose';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _aura_stack_router from '@aura-stack/router';
|
|
2
|
-
import { A as AuthRuntimeConfig } from '../../index-
|
|
2
|
+
import { A as AuthRuntimeConfig } from '../../index-BIop4-KU.js';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import '../../jose.js';
|
|
5
5
|
import '@aura-stack/jose/jose';
|
package/dist/cookie.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SerializeOptions } from 'cookie';
|
|
2
2
|
export { parse } from 'cookie';
|
|
3
3
|
import { JWTPayload } from '@aura-stack/jose/jose';
|
|
4
|
-
import { C as CookieConfig, a as CookieConfigInternal, b as CookieName, A as AuthRuntimeConfig } from './index-
|
|
4
|
+
import { C as CookieConfig, a as CookieConfigInternal, b as CookieName, A as AuthRuntimeConfig } from './index-BIop4-KU.js';
|
|
5
5
|
import { LiteralUnion } from './@types/utility.js';
|
|
6
6
|
import 'zod/v4';
|
|
7
7
|
import './jose.js';
|
package/dist/error.d.ts
CHANGED
|
@@ -526,5 +526,30 @@ type AccessTokenError = OAuthError<z.infer<typeof OAuthAccessTokenErrorResponse>
|
|
|
526
526
|
*/
|
|
527
527
|
type TokenRevocationError = OAuthError<"invalid_session_token" | "invalid_csrf_token" | "invalid_redirect_to">;
|
|
528
528
|
type ErrorType = AuthorizationError["error"] | AccessTokenError["error"] | TokenRevocationError["error"];
|
|
529
|
+
interface RouterGlobalContext {
|
|
530
|
+
oauth: ReturnType<typeof createBuiltInOAuthProviders>;
|
|
531
|
+
jose: JoseInstance;
|
|
532
|
+
basePath: string;
|
|
533
|
+
cookies: CookieConfig;
|
|
534
|
+
trustedProxyHeaders: boolean;
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* Return type of the createAuth function.
|
|
538
|
+
* Contains HTTP handlers for authentication routes and JOSE utilities.
|
|
539
|
+
*/
|
|
540
|
+
interface AuthInstance {
|
|
541
|
+
/**
|
|
542
|
+
* HTTP handlers for authentication routes.
|
|
543
|
+
* Contains GET and POST methods that can be mounted in any framework.
|
|
544
|
+
*/
|
|
545
|
+
handlers: {
|
|
546
|
+
GET: (req: Request) => Response | Promise<Response>;
|
|
547
|
+
POST: (req: Request) => Response | Promise<Response>;
|
|
548
|
+
};
|
|
549
|
+
/**
|
|
550
|
+
* JOSE utilities for JWT operations (signing, encryption, verification, decryption).
|
|
551
|
+
*/
|
|
552
|
+
jose: JoseInstance;
|
|
553
|
+
}
|
|
529
554
|
|
|
530
|
-
export { 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, type HostCookie as H, type JoseInstance as J, type Nameplate as N, type OAuthProviderCredentials as O, type SpotifyProfile as S, type TokenRevocationError as T, type User as U, type XProfile as X, type CookieConfigInternal as a, type CookieName as b, type AuthConfig as c,
|
|
555
|
+
export { 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, type HostCookie as H, type JoseInstance as J, type Nameplate as N, type OAuthProviderCredentials as O, type RouterGlobalContext as R, type SpotifyProfile as S, type TokenRevocationError as T, type User as U, type XProfile as X, type CookieConfigInternal as a, type CookieName as b, type AuthConfig as c, type AuthInstance as d, createBuiltInOAuthProviders as e, discord as f, gitlab as g, figma as h, bitbucket as i, type GitHubProfile as j, github as k, builtInOAuthProviders as l, type BuiltInOAuthProvider as m, type JWTStandardClaims as n, type Session as o, type OAuthProviderConfig as p, type OAuthProvider as q, type SecureCookie as r, spotify as s, type StandardCookie as t, type CookieStrategyOptions as u, type OAuthError as v, type AuthorizationError as w, x, type AccessTokenError as y };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as _aura_stack_router from '@aura-stack/router';
|
|
3
|
-
import { c as AuthConfig } from './index-CGRZ0wrw.js';
|
|
1
|
+
import { c as AuthConfig, d as AuthInstance } from './index-BIop4-KU.js';
|
|
4
2
|
import 'zod/v4';
|
|
5
3
|
import './jose.js';
|
|
4
|
+
import '@aura-stack/jose/jose';
|
|
6
5
|
import './schemas.js';
|
|
7
6
|
import 'zod/v4/core';
|
|
7
|
+
import '@aura-stack/router';
|
|
8
8
|
import 'cookie';
|
|
9
9
|
import './@types/utility.js';
|
|
10
10
|
|
|
@@ -30,14 +30,6 @@ import './@types/utility.js';
|
|
|
30
30
|
* }]
|
|
31
31
|
* })
|
|
32
32
|
*/
|
|
33
|
-
declare const createAuth: (authConfig: AuthConfig) =>
|
|
34
|
-
handlers: _aura_stack_router.GetHttpHandlers<[_aura_stack_router.RouteEndpoint<"GET", "/signIn/:oauth", {}>, _aura_stack_router.RouteEndpoint<"GET", "/callback/:oauth", {}>, _aura_stack_router.RouteEndpoint<"GET", "/session", {}>, _aura_stack_router.RouteEndpoint<"POST", "/signOut", {}>, _aura_stack_router.RouteEndpoint<"GET", "/csrfToken", {}>]>;
|
|
35
|
-
jose: {
|
|
36
|
-
decodeJWT: (token: string) => Promise<JWTPayload>;
|
|
37
|
-
encodeJWT: (payload: JWTPayload) => Promise<string>;
|
|
38
|
-
signJWS: (payload: JWTPayload) => Promise<string>;
|
|
39
|
-
verifyJWS: (payload: string) => Promise<JWTPayload>;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
33
|
+
declare const createAuth: (authConfig: AuthConfig) => AuthInstance;
|
|
42
34
|
|
|
43
35
|
export { createAuth };
|
package/dist/oauth/discord.d.cts
CHANGED
package/dist/oauth/discord.d.ts
CHANGED
package/dist/oauth/figma.d.cts
CHANGED
package/dist/oauth/figma.d.ts
CHANGED
package/dist/oauth/github.d.cts
CHANGED
package/dist/oauth/github.d.ts
CHANGED
package/dist/oauth/gitlab.d.cts
CHANGED
package/dist/oauth/gitlab.d.ts
CHANGED
package/dist/oauth/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BitbucketProfile,
|
|
1
|
+
export { B as BitbucketProfile, m as BuiltInOAuthProvider, D as DiscordProfile, F as FigmaProfile, j as GitHubProfile, G as GitLabProfile, N as Nameplate, S as SpotifyProfile, X as XProfile, i as bitbucket, l as builtInOAuthProviders, e as createBuiltInOAuthProviders, f as discord, h as figma, k as github, g as gitlab, s as spotify, x } from '../index-DtsgAA4Y.cjs';
|
|
2
2
|
import '../@types/utility.cjs';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import '../jose.cjs';
|
package/dist/oauth/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BitbucketProfile,
|
|
1
|
+
export { B as BitbucketProfile, m as BuiltInOAuthProvider, D as DiscordProfile, F as FigmaProfile, j as GitHubProfile, G as GitLabProfile, N as Nameplate, S as SpotifyProfile, X as XProfile, i as bitbucket, l as builtInOAuthProviders, e as createBuiltInOAuthProviders, f as discord, h as figma, k as github, g as gitlab, s as spotify, x } from '../index-BIop4-KU.js';
|
|
2
2
|
import '../@types/utility.js';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import '../jose.js';
|
package/dist/oauth/spotify.d.cts
CHANGED
package/dist/oauth/spotify.d.ts
CHANGED
package/dist/oauth/x.d.cts
CHANGED
package/dist/oauth/x.d.ts
CHANGED
package/dist/secure.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aura-stack/auth",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Core auth for @aura-stack/auth",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"@aura-stack/jose": "0.1.0-rc.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@aura-stack/
|
|
55
|
-
"@aura-stack/
|
|
54
|
+
"@aura-stack/tsconfig": "0.0.0",
|
|
55
|
+
"@aura-stack/tsup-config": "0.0.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"dev": "tsup --watch",
|