@aura-stack/auth 0.1.0-rc.4 → 0.1.0-rc.6
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.d.ts +3 -3
- 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/signIn/authorization.d.ts +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-bhqqOq40.d.ts → index-CKVRbv5V.d.ts} +8 -26
- package/dist/index.d.ts +14 -5
- 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/spotify.d.ts +1 -1
- package/dist/oauth/x.d.ts +1 -1
- package/dist/secure.d.ts +1 -1
- package/package.json +2 -2
- package/dist/@types/index.d.cts +0 -9
- package/dist/@types/router.d.d.cts +0 -13
- package/dist/@types/utility.d.cts +0 -6
- package/dist/actions/callback/access-token.d.cts +0 -30
- package/dist/actions/callback/callback.d.cts +0 -13
- package/dist/actions/callback/userinfo.d.cts +0 -22
- package/dist/actions/csrfToken/csrfToken.d.cts +0 -5
- package/dist/actions/index.d.cts +0 -14
- package/dist/actions/session/session.d.cts +0 -5
- package/dist/actions/signIn/authorization.d.cts +0 -45
- package/dist/actions/signIn/signIn.d.cts +0 -13
- package/dist/actions/signOut/signOut.d.cts +0 -8
- package/dist/oauth/bitbucket.d.cts +0 -9
- package/dist/oauth/discord.d.cts +0 -9
- package/dist/oauth/figma.d.cts +0 -9
- package/dist/oauth/github.d.cts +0 -9
- package/dist/oauth/gitlab.d.cts +0 -9
- package/dist/oauth/index.d.cts +0 -9
- package/dist/oauth/spotify.d.cts +0 -9
- package/dist/oauth/x.d.cts +0 -9
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 { w as AccessTokenError, c as AuthConfig, A as AuthRuntimeConfig, v as AuthorizationError, C as CookieConfig, a as CookieConfigInternal, b as CookieName, t as CookieStrategyOptions, E as ErrorType, H as HostCookie, p as JWTStandardClaims, J as JoseInstance, u as OAuthError, O as OAuthProvider, d as OAuthProviderConfig, e as OAuthProviderCredentials, R as RouterGlobalContext, q as SecureCookie, S as Session, r as StandardCookie, T as TokenRevocationError, U as User } from '../index-CKVRbv5V.js';
|
|
8
8
|
import '@aura-stack/jose/jose';
|
|
9
9
|
import 'zod/v4/core';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RouterGlobalContext } from '../index-
|
|
1
|
+
import { R as RouterGlobalContext } from '../index-CKVRbv5V.js';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import '../jose.js';
|
|
4
4
|
import '@aura-stack/jose/jose';
|
|
@@ -8,6 +8,6 @@ import '@aura-stack/router';
|
|
|
8
8
|
import 'cookie';
|
|
9
9
|
import './utility.js';
|
|
10
10
|
|
|
11
|
-
declare module "@aura-stack/router" {
|
|
12
|
-
interface GlobalContext extends RouterGlobalContext {}
|
|
11
|
+
declare module "@aura-stack/router" {
|
|
12
|
+
interface GlobalContext extends RouterGlobalContext {}
|
|
13
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-CKVRbv5V.js';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import '../../jose.js';
|
|
5
5
|
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-CKVRbv5V.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-CKVRbv5V.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-CKVRbv5V.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
|
@@ -503,6 +503,13 @@ interface AuthRuntimeConfig {
|
|
|
503
503
|
secret: string;
|
|
504
504
|
jose: JoseInstance;
|
|
505
505
|
}
|
|
506
|
+
interface RouterGlobalContext {
|
|
507
|
+
oauth: Record<LiteralUnion<BuiltInOAuthProvider>, OAuthProviderCredentials>;
|
|
508
|
+
jose: JoseInstance;
|
|
509
|
+
basePath: string;
|
|
510
|
+
cookies: CookieConfig;
|
|
511
|
+
trustedProxyHeaders: boolean;
|
|
512
|
+
}
|
|
506
513
|
/**
|
|
507
514
|
* Base OAuth error response structure.
|
|
508
515
|
*/
|
|
@@ -526,30 +533,5 @@ type AccessTokenError = OAuthError<z.infer<typeof OAuthAccessTokenErrorResponse>
|
|
|
526
533
|
*/
|
|
527
534
|
type TokenRevocationError = OAuthError<"invalid_session_token" | "invalid_csrf_token" | "invalid_redirect_to">;
|
|
528
535
|
type ErrorType = AuthorizationError["error"] | AccessTokenError["error"] | TokenRevocationError["error"];
|
|
529
|
-
interface RouterGlobalContext {
|
|
530
|
-
oauth: Record<LiteralUnion<BuiltInOAuthProvider>, OAuthProviderCredentials>;
|
|
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
|
-
}
|
|
554
536
|
|
|
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
|
|
537
|
+
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 OAuthProvider as O, type RouterGlobalContext as R, type Session 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 OAuthProviderConfig as d, type OAuthProviderCredentials as e, type SpotifyProfile as f, gitlab as g, discord as h, figma as i, bitbucket as j, type GitHubProfile as k, github as l, builtInOAuthProviders as m, createBuiltInOAuthProviders as n, type BuiltInOAuthProvider as o, type JWTStandardClaims as p, type SecureCookie as q, type StandardCookie as r, spotify as s, type CookieStrategyOptions as t, type OAuthError as u, type AuthorizationError as v, type AccessTokenError as w, x };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JWTPayload } from '@aura-stack/jose/jose';
|
|
2
|
+
import * as _aura_stack_router from '@aura-stack/router';
|
|
3
|
+
import { c as AuthConfig } from './index-CKVRbv5V.js';
|
|
4
|
+
export { C as CookieConfig, E as ErrorType, J as JoseInstance, O as OAuthProvider, d as OAuthProviderConfig, e as OAuthProviderCredentials, S as Session, U as User } from './index-CKVRbv5V.js';
|
|
2
5
|
import 'zod/v4';
|
|
3
6
|
import './jose.js';
|
|
4
|
-
import '@aura-stack/jose/jose';
|
|
5
7
|
import './schemas.js';
|
|
6
8
|
import 'zod/v4/core';
|
|
7
|
-
import '@aura-stack/router';
|
|
8
9
|
import 'cookie';
|
|
9
10
|
import './@types/utility.js';
|
|
10
11
|
|
|
@@ -30,6 +31,14 @@ import './@types/utility.js';
|
|
|
30
31
|
* }]
|
|
31
32
|
* })
|
|
32
33
|
*/
|
|
33
|
-
declare const createAuth: (authConfig: AuthConfig) =>
|
|
34
|
+
declare const createAuth: (authConfig: AuthConfig) => {
|
|
35
|
+
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", {}>]>;
|
|
36
|
+
jose: {
|
|
37
|
+
decodeJWT: (token: string) => Promise<JWTPayload>;
|
|
38
|
+
encodeJWT: (payload: JWTPayload) => Promise<string>;
|
|
39
|
+
signJWS: (payload: JWTPayload) => Promise<string>;
|
|
40
|
+
verifyJWS: (payload: string) => Promise<JWTPayload>;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
34
43
|
|
|
35
|
-
export { createAuth };
|
|
44
|
+
export { AuthConfig, createAuth };
|
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,
|
|
1
|
+
export { B as BitbucketProfile, o as BuiltInOAuthProvider, D as DiscordProfile, F as FigmaProfile, k as GitHubProfile, G as GitLabProfile, N as Nameplate, f as SpotifyProfile, X as XProfile, j as bitbucket, m as builtInOAuthProviders, n as createBuiltInOAuthProviders, h as discord, i as figma, l as github, g as gitlab, s as spotify, x } from '../index-CKVRbv5V.js';
|
|
2
2
|
import '../@types/utility.js';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import '../jose.js';
|
package/dist/oauth/spotify.d.ts
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.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Core auth for @aura-stack/auth",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"format:check": "prettier --check . --cache --cache-location .cache/.prettiercache",
|
|
65
65
|
"type-check": "tsc --noEmit",
|
|
66
66
|
"clean": "rm -rf dist",
|
|
67
|
-
"clean:cts": "
|
|
67
|
+
"clean:cts": "find dist -type f -name \"*.cts\" -delete",
|
|
68
68
|
"prepublish": "pnpm clean:cts"
|
|
69
69
|
}
|
|
70
70
|
}
|
package/dist/@types/index.d.cts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import 'zod/v4';
|
|
2
|
-
import '../jose.cjs';
|
|
3
|
-
import '../schemas.cjs';
|
|
4
|
-
import '@aura-stack/router';
|
|
5
|
-
import 'cookie';
|
|
6
|
-
export { LiteralUnion, Prettify } from './utility.cjs';
|
|
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, t as CookieStrategyOptions, E as ErrorType, H as HostCookie, J as JWTStandardClaims, u as JoseInstance, v as OAuthError, p as OAuthProvider, o as OAuthProviderConfig, O as OAuthProviderCredentials, R as RouterGlobalContext, q as SecureCookie, n as Session, r as StandardCookie, T as TokenRevocationError, U as User } from '../index-Bht8X2D9.cjs';
|
|
8
|
-
import '@aura-stack/jose/jose';
|
|
9
|
-
import 'zod/v4/core';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { R as RouterGlobalContext } from '../index-Bht8X2D9.cjs';
|
|
2
|
-
import 'zod/v4';
|
|
3
|
-
import '../jose.cjs';
|
|
4
|
-
import '@aura-stack/jose/jose';
|
|
5
|
-
import '../schemas.cjs';
|
|
6
|
-
import 'zod/v4/core';
|
|
7
|
-
import '@aura-stack/router';
|
|
8
|
-
import 'cookie';
|
|
9
|
-
import './utility.cjs';
|
|
10
|
-
|
|
11
|
-
declare module "@aura-stack/router" {
|
|
12
|
-
interface GlobalContext extends RouterGlobalContext {}
|
|
13
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { O as OAuthProviderCredentials } from '../../index-Bht8X2D9.cjs';
|
|
2
|
-
import 'zod/v4';
|
|
3
|
-
import '../../jose.cjs';
|
|
4
|
-
import '@aura-stack/jose/jose';
|
|
5
|
-
import '../../schemas.cjs';
|
|
6
|
-
import 'zod/v4/core';
|
|
7
|
-
import '@aura-stack/router';
|
|
8
|
-
import 'cookie';
|
|
9
|
-
import '../../@types/utility.cjs';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Make a request to the OAuth provider to the token endpoint to exchange the authorization code provided
|
|
13
|
-
* by the authorization server.
|
|
14
|
-
*
|
|
15
|
-
* @see https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.3
|
|
16
|
-
* @see https://datatracker.ietf.org/doc/html/rfc6749#section-5
|
|
17
|
-
* @param oauthConfig - OAuth provider configuration
|
|
18
|
-
* @param redirectURI - The redirect URI registered in the Resource Owner's authorization request and sent in the authorization code exchange
|
|
19
|
-
* @param code - The authorization code received from the OAuth server
|
|
20
|
-
* @returns The access token response from the OAuth server
|
|
21
|
-
*/
|
|
22
|
-
declare const createAccessToken: (oauthConfig: OAuthProviderCredentials, redirectURI: string, code: string, codeVerifier: string) => Promise<{
|
|
23
|
-
access_token: string;
|
|
24
|
-
token_type: string;
|
|
25
|
-
expires_in?: number | undefined;
|
|
26
|
-
refresh_token?: string | undefined;
|
|
27
|
-
scope?: string | undefined;
|
|
28
|
-
}>;
|
|
29
|
-
|
|
30
|
-
export { createAccessToken };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as _aura_stack_router from '@aura-stack/router';
|
|
2
|
-
import { A as AuthRuntimeConfig } from '../../index-Bht8X2D9.cjs';
|
|
3
|
-
import 'zod/v4';
|
|
4
|
-
import '../../jose.cjs';
|
|
5
|
-
import '@aura-stack/jose/jose';
|
|
6
|
-
import '../../schemas.cjs';
|
|
7
|
-
import 'zod/v4/core';
|
|
8
|
-
import 'cookie';
|
|
9
|
-
import '../../@types/utility.cjs';
|
|
10
|
-
|
|
11
|
-
declare const callbackAction: (oauth: AuthRuntimeConfig["oauth"]) => _aura_stack_router.RouteEndpoint<"GET", "/callback/:oauth", {}>;
|
|
12
|
-
|
|
13
|
-
export { callbackAction };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { O as OAuthProviderCredentials, U as User } from '../../index-Bht8X2D9.cjs';
|
|
2
|
-
import 'zod/v4';
|
|
3
|
-
import '../../jose.cjs';
|
|
4
|
-
import '@aura-stack/jose/jose';
|
|
5
|
-
import '../../schemas.cjs';
|
|
6
|
-
import 'zod/v4/core';
|
|
7
|
-
import '@aura-stack/router';
|
|
8
|
-
import 'cookie';
|
|
9
|
-
import '../../@types/utility.cjs';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Get user information from the OAuth provider's userinfo endpoint using the provided access token.
|
|
13
|
-
* The response by default is mapped to the standardized `User` format unless a custom
|
|
14
|
-
* `profile` function is provided in the `oauthConfig`.
|
|
15
|
-
*
|
|
16
|
-
* @param oauthConfig - OAuth provider configuration
|
|
17
|
-
* @param accessToken - Access Token to access the userinfo endpoint
|
|
18
|
-
* @returns The user information retrieved from the userinfo endpoint
|
|
19
|
-
*/
|
|
20
|
-
declare const getUserInfo: (oauthConfig: OAuthProviderCredentials, accessToken: string) => Promise<User>;
|
|
21
|
-
|
|
22
|
-
export { getUserInfo };
|
package/dist/actions/index.d.cts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export { signInAction } from './signIn/signIn.cjs';
|
|
2
|
-
export { callbackAction } from './callback/callback.cjs';
|
|
3
|
-
export { sessionAction } from './session/session.cjs';
|
|
4
|
-
export { signOutAction } from './signOut/signOut.cjs';
|
|
5
|
-
export { csrfTokenAction } from './csrfToken/csrfToken.cjs';
|
|
6
|
-
import '@aura-stack/router';
|
|
7
|
-
import '../index-Bht8X2D9.cjs';
|
|
8
|
-
import 'zod/v4';
|
|
9
|
-
import '../jose.cjs';
|
|
10
|
-
import '@aura-stack/jose/jose';
|
|
11
|
-
import '../schemas.cjs';
|
|
12
|
-
import 'zod/v4/core';
|
|
13
|
-
import 'cookie';
|
|
14
|
-
import '../@types/utility.cjs';
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { O as OAuthProviderCredentials } from '../../index-Bht8X2D9.cjs';
|
|
2
|
-
import 'zod/v4';
|
|
3
|
-
import '../../jose.cjs';
|
|
4
|
-
import '@aura-stack/jose/jose';
|
|
5
|
-
import '../../schemas.cjs';
|
|
6
|
-
import 'zod/v4/core';
|
|
7
|
-
import '@aura-stack/router';
|
|
8
|
-
import 'cookie';
|
|
9
|
-
import '../../@types/utility.cjs';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Constructs the request URI for the Authorization Request to the third-party OAuth service. It includes
|
|
13
|
-
* the necessary query parameters such as `client_id`, `redirect_uri`, `response_type`, `scope`, `state`,
|
|
14
|
-
* `code_challenge`, and `code_challenge_method`.
|
|
15
|
-
*
|
|
16
|
-
* @see https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.1
|
|
17
|
-
* @see https://datatracker.ietf.org/doc/html/rfc7636#section-4
|
|
18
|
-
*
|
|
19
|
-
* @param oauthConfig - The OAuth configuration for the third-party service.
|
|
20
|
-
* @param redirectURI - The redirect URI where the OAuth service will send the user after authorization.
|
|
21
|
-
* @param state - A unique string used to maintain state between the request and callback.
|
|
22
|
-
*/
|
|
23
|
-
declare const createAuthorizationURL: (oauthConfig: OAuthProviderCredentials, redirectURI: string, state: string, codeChallenge: string, codeChallengeMethod: string) => string;
|
|
24
|
-
declare const getOriginURL: (request: Request, trustedProxyHeaders?: boolean) => URL;
|
|
25
|
-
/**
|
|
26
|
-
* Creates the redirect URI for the OAuth callback based on the original request URL and the OAuth provider.
|
|
27
|
-
*
|
|
28
|
-
* @param requestURL - the original request URL
|
|
29
|
-
* @param oauth - OAuth provider name
|
|
30
|
-
* @returns The redirect URI for the OAuth callback.
|
|
31
|
-
*/
|
|
32
|
-
declare const createRedirectURI: (request: Request, oauth: string, basePath: string, trustedProxyHeaders?: boolean) => string;
|
|
33
|
-
/**
|
|
34
|
-
* Verifies if the request's origin matches the expected origin. It accepts the redirectTo search
|
|
35
|
-
* parameter for redirection. It checks the 'Referer' header of the request with the origin where
|
|
36
|
-
* the authentication flow is hosted. If they do not match, it throws an AuthError to avoid
|
|
37
|
-
* potential `Open URL Redirection` attacks.
|
|
38
|
-
*
|
|
39
|
-
* @param request The incoming request object
|
|
40
|
-
* @param redirectTo Optional redirectTo parameter to override the referer
|
|
41
|
-
* @returns The pathname of the referer URL if origins match
|
|
42
|
-
*/
|
|
43
|
-
declare const createRedirectTo: (request: Request, redirectTo?: string, trustedProxyHeaders?: boolean) => string;
|
|
44
|
-
|
|
45
|
-
export { createAuthorizationURL, createRedirectTo, createRedirectURI, getOriginURL };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as _aura_stack_router from '@aura-stack/router';
|
|
2
|
-
import { A as AuthRuntimeConfig } from '../../index-Bht8X2D9.cjs';
|
|
3
|
-
import 'zod/v4';
|
|
4
|
-
import '../../jose.cjs';
|
|
5
|
-
import '@aura-stack/jose/jose';
|
|
6
|
-
import '../../schemas.cjs';
|
|
7
|
-
import 'zod/v4/core';
|
|
8
|
-
import 'cookie';
|
|
9
|
-
import '../../@types/utility.cjs';
|
|
10
|
-
|
|
11
|
-
declare const signInAction: (oauth: AuthRuntimeConfig["oauth"]) => _aura_stack_router.RouteEndpoint<"GET", "/signIn/:oauth", {}>;
|
|
12
|
-
|
|
13
|
-
export { signInAction };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { B as BitbucketProfile, h as bitbucket } from '../index-Bht8X2D9.cjs';
|
|
2
|
-
import '../@types/utility.cjs';
|
|
3
|
-
import 'zod/v4';
|
|
4
|
-
import '../jose.cjs';
|
|
5
|
-
import '@aura-stack/jose/jose';
|
|
6
|
-
import '../schemas.cjs';
|
|
7
|
-
import 'zod/v4/core';
|
|
8
|
-
import '@aura-stack/router';
|
|
9
|
-
import 'cookie';
|
package/dist/oauth/discord.d.cts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { D as DiscordProfile, N as Nameplate, e as discord } from '../index-Bht8X2D9.cjs';
|
|
2
|
-
import 'zod/v4';
|
|
3
|
-
import '../jose.cjs';
|
|
4
|
-
import '@aura-stack/jose/jose';
|
|
5
|
-
import '../schemas.cjs';
|
|
6
|
-
import 'zod/v4/core';
|
|
7
|
-
import '@aura-stack/router';
|
|
8
|
-
import 'cookie';
|
|
9
|
-
import '../@types/utility.cjs';
|
package/dist/oauth/figma.d.cts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { F as FigmaProfile, f as figma } from '../index-Bht8X2D9.cjs';
|
|
2
|
-
import 'zod/v4';
|
|
3
|
-
import '../jose.cjs';
|
|
4
|
-
import '@aura-stack/jose/jose';
|
|
5
|
-
import '../schemas.cjs';
|
|
6
|
-
import 'zod/v4/core';
|
|
7
|
-
import '@aura-stack/router';
|
|
8
|
-
import 'cookie';
|
|
9
|
-
import '../@types/utility.cjs';
|
package/dist/oauth/github.d.cts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { i as GitHubProfile, j as github } from '../index-Bht8X2D9.cjs';
|
|
2
|
-
import 'zod/v4';
|
|
3
|
-
import '../jose.cjs';
|
|
4
|
-
import '@aura-stack/jose/jose';
|
|
5
|
-
import '../schemas.cjs';
|
|
6
|
-
import 'zod/v4/core';
|
|
7
|
-
import '@aura-stack/router';
|
|
8
|
-
import 'cookie';
|
|
9
|
-
import '../@types/utility.cjs';
|
package/dist/oauth/gitlab.d.cts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { G as GitLabProfile, g as gitlab } from '../index-Bht8X2D9.cjs';
|
|
2
|
-
import 'zod/v4';
|
|
3
|
-
import '../jose.cjs';
|
|
4
|
-
import '@aura-stack/jose/jose';
|
|
5
|
-
import '../schemas.cjs';
|
|
6
|
-
import 'zod/v4/core';
|
|
7
|
-
import '@aura-stack/router';
|
|
8
|
-
import 'cookie';
|
|
9
|
-
import '../@types/utility.cjs';
|
package/dist/oauth/index.d.cts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { B as BitbucketProfile, m as BuiltInOAuthProvider, D as DiscordProfile, F as FigmaProfile, i as GitHubProfile, G as GitLabProfile, N as Nameplate, S as SpotifyProfile, X as XProfile, h as bitbucket, k as builtInOAuthProviders, l as createBuiltInOAuthProviders, e as discord, f as figma, j as github, g as gitlab, s as spotify, x } from '../index-Bht8X2D9.cjs';
|
|
2
|
-
import '../@types/utility.cjs';
|
|
3
|
-
import 'zod/v4';
|
|
4
|
-
import '../jose.cjs';
|
|
5
|
-
import '@aura-stack/jose/jose';
|
|
6
|
-
import '../schemas.cjs';
|
|
7
|
-
import 'zod/v4/core';
|
|
8
|
-
import '@aura-stack/router';
|
|
9
|
-
import 'cookie';
|
package/dist/oauth/spotify.d.cts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { S as SpotifyProfile, s as spotify } from '../index-Bht8X2D9.cjs';
|
|
2
|
-
import 'zod/v4';
|
|
3
|
-
import '../jose.cjs';
|
|
4
|
-
import '@aura-stack/jose/jose';
|
|
5
|
-
import '../schemas.cjs';
|
|
6
|
-
import 'zod/v4/core';
|
|
7
|
-
import '@aura-stack/router';
|
|
8
|
-
import 'cookie';
|
|
9
|
-
import '../@types/utility.cjs';
|
package/dist/oauth/x.d.cts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { X as XProfile, x } from '../index-Bht8X2D9.cjs';
|
|
2
|
-
import 'zod/v4';
|
|
3
|
-
import '../jose.cjs';
|
|
4
|
-
import '@aura-stack/jose/jose';
|
|
5
|
-
import '../schemas.cjs';
|
|
6
|
-
import 'zod/v4/core';
|
|
7
|
-
import '@aura-stack/router';
|
|
8
|
-
import 'cookie';
|
|
9
|
-
import '../@types/utility.cjs';
|