type
AuthAccessRule
Allow or deny one authentication operation.
Arguments
| Argument | Type | Description |
|---|---|---|
context | AuthContext | The secret-free operation and actor context. |
Returns
True to allow, false to deny, or an error when evaluation failed.
(bool, error)Full signature
type AuthAccessRule func(AuthContext) (bool, error)Related types
AuthContextRequest and actor state supplied to an authentication rule or hook.