Remix
Remix
remix/auth-middleware · TypeView Source

ContextWithRequiredAuth

Summary

Adds the Auth context key — typed as a GoodAuth only — onto an existing router RequestContext. Use this on handlers mounted under requireAuth where the request is guaranteed to be authenticated.

Signature

type ContextWithRequiredAuth<context, identity> = ContextWithValues<
  context,
  [AuthContextEntry<GoodAuth<identity>>]
>;