---
title: "Auth"
source: "https://github.com/remix-run/remix/blob/8905f3943706e1f53696ab83e70a84873cabfc90/packages/auth-middleware/src/lib/auth.ts#L50"
---

# Auth

## Summary

Context key used to read auth state with `context.get(Auth)`.
The `auth()` middleware also installs auth state as `context.auth`.

## Signature

```ts
const Auth: { defaultValue?: AuthState }
```