authhero 8.11.0 → 8.11.1
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/authhero.cjs +81 -81
- package/dist/authhero.d.ts +75 -75
- package/dist/authhero.mjs +2899 -2882
- package/dist/stats.html +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +3 -3
- package/dist/types/helpers/dcr/connect-state.d.ts +13 -0
- package/dist/types/index.d.ts +75 -75
- package/dist/types/routes/auth-api/index.d.ts +16 -16
- package/dist/types/routes/auth-api/passwordless.d.ts +14 -14
- package/dist/types/routes/management-api/email-templates.d.ts +18 -18
- package/dist/types/routes/management-api/index.d.ts +54 -54
- package/dist/types/routes/management-api/organizations.d.ts +2 -2
- package/dist/types/routes/universal-login/common.d.ts +2 -2
- package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
- package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
- package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
- package/package.json +2 -2
|
@@ -458,7 +458,7 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
458
458
|
custom_login_page_preview?: string | undefined;
|
|
459
459
|
form_template?: string | undefined;
|
|
460
460
|
addons?: Record<string, any> | undefined;
|
|
461
|
-
token_endpoint_auth_method?: "
|
|
461
|
+
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt" | undefined;
|
|
462
462
|
client_metadata?: Record<string, string> | undefined;
|
|
463
463
|
hide_sign_up_disabled_error?: boolean | undefined;
|
|
464
464
|
mobile?: Record<string, any> | undefined;
|
|
@@ -541,8 +541,8 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
541
541
|
} | undefined;
|
|
542
542
|
authenticated_at?: string | undefined;
|
|
543
543
|
};
|
|
544
|
-
connectionType: "
|
|
545
|
-
authConnection: "
|
|
544
|
+
connectionType: "username" | "email" | "sms";
|
|
545
|
+
authConnection: "username" | "email" | "sms";
|
|
546
546
|
session_id: string | undefined;
|
|
547
547
|
authParams: {
|
|
548
548
|
client_id: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A `/connect/start` login session stashes its DCR consent context under
|
|
3
|
+
* `state_data.connect` (see routes/auth-api/connect-start.ts). Such a session
|
|
4
|
+
* is NOT a real OAuth request — it carries no `redirect_uri`/`response_type`
|
|
5
|
+
* and exists only to authenticate the user for the DCR consent screen.
|
|
6
|
+
*
|
|
7
|
+
* Both the login-completion path (createFrontChannelAuthResponse) and the
|
|
8
|
+
* social callback (connectionCallback) use this predicate to recognize a
|
|
9
|
+
* connect session so they hand control back to `/u2/connect/start` instead of
|
|
10
|
+
* attempting a normal front-channel OAuth response (which would dead-end on
|
|
11
|
+
* the missing redirect_uri).
|
|
12
|
+
*/
|
|
13
|
+
export declare function isConnectLoginSession(stateDataJson?: string | null): boolean;
|