AuthContext
AuthContext =
object
Defined in: packages/auth/src/types.ts:34
The auth context for a request, which may or may not be authenticated.
When the user is not logged in, user is null and grants contains
only the anonymous role grants. Use AuthenticatedContext when
you need a guaranteed non-null user.
Properties
Section titled “Properties”grants
Section titled “grants”grants:
Grant[]
Defined in: packages/auth/src/types.ts:38
Permission grants resolved from the user’s roles (or anonymous roles).
user:
AuthUser|null
Defined in: packages/auth/src/types.ts:36
The current user, or null if the request is unauthenticated.