type
AuthHooks
type AuthHooks struct {
BeforeLogin []AuthHook
AfterLogin []AuthHook
AfterMe []AuthHook
BeforeLogout []AuthHook
AfterLogout []AuthHook
BeforeRefresh []AuthHook
AfterRefresh []AuthHook
BeforeForgotPassword []AuthHook
AfterForgotPassword []AuthHook
BeforePasswordReset []AuthHook
AfterPasswordReset []AuthHook
BeforeVerification []AuthHook
AfterVerification []AuthHook
BeforeAPIKey []AuthHook
AfterAPIKey []AuthHook
}Authentication lifecycle callbacks grouped by phase.
Source core/auth_contract.go:57
BeforeLogin[]AuthHook- Before Login callbacks in declaration order.
AfterLogin[]AuthHook- After Login callbacks in declaration order.
AfterMe[]AuthHook- After Me callbacks in declaration order.
BeforeLogout[]AuthHook- Before Logout callbacks in declaration order.
AfterLogout[]AuthHook- After Logout callbacks in declaration order.
BeforeRefresh[]AuthHook- Before Refresh callbacks in declaration order.
AfterRefresh[]AuthHook- After Refresh callbacks in declaration order.
BeforeForgotPassword[]AuthHook- Before Forgot Password callbacks in declaration order.
AfterForgotPassword[]AuthHook- After Forgot Password callbacks in declaration order.
BeforePasswordReset[]AuthHook- Before Password Reset callbacks in declaration order.
AfterPasswordReset[]AuthHook- After Password Reset callbacks in declaration order.
BeforeVerification[]AuthHook- Before Verification callbacks in declaration order.
AfterVerification[]AuthHook- After Verification callbacks in declaration order.
BeforeAPIKey[]AuthHook- Before APIKey callbacks in declaration order.
AfterAPIKey[]AuthHook- After APIKey callbacks in declaration order.
Before hooks can reject an operation. If an after-login or after-refresh hook fails, Ridu revokes the newly issued credential before returning the error.