type
AuthContext
Exact actor, operation, request, and LocalAPI state for an auth rule or hook.
Properties
| Property | Type | Description |
|---|---|---|
Context | context.Context | Carries request cancellation and deadlines. |
Operation | AuthOperation | Identifies the authentication lifecycle boundary. |
CollectionID | schema.StableID | Identifies the target auth collection. |
User | *store.Document | The current user when one has been resolved. |
Identity | string | The normalized login identity when applicable. |
IPAddress | string | The resolved direct or trusted-forwarded client address. |
UserAgent | string | The request user-agent metadata. |
Local | *LocalAPI | Enters ordinary access-controlled content operations. |
How it works
Passwords, bearer tokens, reset tokens, and API keys are intentionally never included.