authhero 4.3.0 → 4.4.0
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.d.ts +18 -24
- package/package.json +1 -1
package/dist/authhero.d.ts
CHANGED
|
@@ -37798,6 +37798,22 @@ export type OnFetchUserInfoAPI = {
|
|
|
37798
37798
|
};
|
|
37799
37799
|
/** Called when /userinfo endpoint is accessed */
|
|
37800
37800
|
export type OnFetchUserInfo = (event: UserInfoEvent, api: OnFetchUserInfoAPI) => Promise<void>;
|
|
37801
|
+
/**
|
|
37802
|
+
* All available auth flow hooks.
|
|
37803
|
+
* This type is shared between AuthHeroConfig and Bindings to ensure consistency.
|
|
37804
|
+
*/
|
|
37805
|
+
export type Hooks = {
|
|
37806
|
+
onExecuteCredentialsExchange?: OnExecuteCredentialsExchange;
|
|
37807
|
+
onExecutePreUserRegistration?: OnExecutePreUserRegistration;
|
|
37808
|
+
onExecutePostUserRegistration?: OnExecutePostUserRegistration;
|
|
37809
|
+
onExecutePreUserUpdate?: OnExecutePreUserUpdate;
|
|
37810
|
+
onExecutePostLogin?: OnExecutePostLogin;
|
|
37811
|
+
onExecutePreUserDeletion?: OnExecutePreUserDeletion;
|
|
37812
|
+
onExecutePostUserDeletion?: OnExecutePostUserDeletion;
|
|
37813
|
+
onExecuteValidateRegistrationUsername?: OnExecuteValidateRegistrationUsername;
|
|
37814
|
+
/** Called when /userinfo endpoint is accessed to add custom claims */
|
|
37815
|
+
onFetchUserInfo?: OnFetchUserInfo;
|
|
37816
|
+
};
|
|
37801
37817
|
/**
|
|
37802
37818
|
* Entity hooks configuration for CRUD operations.
|
|
37803
37819
|
*
|
|
@@ -37838,18 +37854,7 @@ export interface AuthHeroConfig {
|
|
|
37838
37854
|
/**
|
|
37839
37855
|
* Auth0-style action hooks for auth flow events.
|
|
37840
37856
|
*/
|
|
37841
|
-
hooks?:
|
|
37842
|
-
onExecuteCredentialsExchange?: OnExecuteCredentialsExchange;
|
|
37843
|
-
onExecutePreUserRegistration?: OnExecutePreUserRegistration;
|
|
37844
|
-
onExecutePostUserRegistration?: OnExecutePostUserRegistration;
|
|
37845
|
-
onExecutePreUserUpdate?: OnExecutePreUserUpdate;
|
|
37846
|
-
onExecutePostLogin?: OnExecutePostLogin;
|
|
37847
|
-
/**
|
|
37848
|
-
* Called when the /userinfo endpoint is accessed.
|
|
37849
|
-
* Use this to add custom claims to the userinfo response.
|
|
37850
|
-
*/
|
|
37851
|
-
onFetchUserInfo?: OnFetchUserInfo;
|
|
37852
|
-
};
|
|
37857
|
+
hooks?: Hooks;
|
|
37853
37858
|
/**
|
|
37854
37859
|
* Entity CRUD hooks for when resources are created/updated/deleted.
|
|
37855
37860
|
* Use these to implement cross-tenant sync, audit logging, webhooks, etc.
|
|
@@ -37980,18 +37985,7 @@ export type Bindings = {
|
|
|
37980
37985
|
UNIVERSAL_LOGIN_URL?: string;
|
|
37981
37986
|
OAUTH_API_URL?: string;
|
|
37982
37987
|
data: DataAdapters;
|
|
37983
|
-
hooks?:
|
|
37984
|
-
onExecuteCredentialsExchange?: OnExecuteCredentialsExchange;
|
|
37985
|
-
onExecutePreUserRegistration?: OnExecutePreUserRegistration;
|
|
37986
|
-
onExecutePostUserRegistration?: OnExecutePostUserRegistration;
|
|
37987
|
-
onExecutePreUserUpdate?: OnExecutePreUserUpdate;
|
|
37988
|
-
onExecutePostLogin?: OnExecutePostLogin;
|
|
37989
|
-
onExecutePreUserDeletion?: OnExecutePreUserDeletion;
|
|
37990
|
-
onExecutePostUserDeletion?: OnExecutePostUserDeletion;
|
|
37991
|
-
onExecuteValidateRegistrationUsername?: OnExecuteValidateRegistrationUsername;
|
|
37992
|
-
/** Called when /userinfo endpoint is accessed to add custom claims */
|
|
37993
|
-
onFetchUserInfo?: OnFetchUserInfo;
|
|
37994
|
-
};
|
|
37988
|
+
hooks?: Hooks;
|
|
37995
37989
|
/**
|
|
37996
37990
|
* Entity CRUD hooks for when resources are created/updated/deleted.
|
|
37997
37991
|
* Use these to implement cross-tenant sync, audit logging, webhooks, etc.
|