Minor Changes
-
Add
auth-middleware, a pluggable authentication middleware package forfetch-router.Includes:
- the
Authcontext key andAuthStatefor reading request auth state withcontext.get(Auth) auth()for resolving request authentication state withcontext.get(Auth)requireAuth()for enforcing authenticated access with configurable failure responsesWithAuthandWithRequiredAuthfor app-level request context contracts- built-in
createBearerTokenAuthScheme(),createAPIAuthScheme(), andcreateSessionAuthScheme()helpers
- the
Patch Changes
- Bumped
@remix-run/*dependencies: