AuthenticatedContext
AuthenticatedContext =
object
Defined in: packages/auth/src/types.ts:48
A narrowed AuthContext where the user is guaranteed to be present.
Returned by auth.requireUser(), which redirects to the login page if
the request is unauthenticated. Use this in loaders and actions that
require a logged-in user.
Properties
Section titled “Properties”grants
Section titled “grants”grants:
Grant[]
Defined in: packages/auth/src/types.ts:52
Permission grants resolved from the user’s assigned roles.
user:
AuthUser
Defined in: packages/auth/src/types.ts:50
The authenticated user (always present).