type
AuthHook
Observe or reject one authentication lifecycle phase.
Arguments
| Argument | Type | Description |
|---|---|---|
context | AuthContext | The secret-free lifecycle context. |
Returns
Nil to continue or an error to reject/fail the phase.
errorFull signature
type AuthHook func(AuthContext) errorRelated types
AuthContextRequest and actor state supplied to an authentication rule or hook.