# Schemas: t3/auth

> T3 Code · channel `nightly` · v0.1.15-nightly.20261205.5786 @ [`be521199aace`](https://github.com/pingdotgg/t3code/tree/be521199aace1a0b446f4db4a1181ef994aaa1e2) · 2026-12-05 · generated by Everdoc from source (no LLM).

98 entries.

<a id="schema-activepairinglinksloaderror"></a>

## `ActivePairingLinksLoadError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/PairingGrantStore.ts:112](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/PairingGrantStore.ts#L112-L121)
- Shape: `{ _tag: "ActivePairingLinksLoadError"; cause: unknown }`

<a id="schema-activesessionslisterror"></a>

## `ActiveSessionsListError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:335](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L335-L344)
- Shape: `{ _tag: "ActiveSessionsListError"; cause: unknown }`

<a id="schema-bootstrapcredentialchange"></a>

## `BootstrapCredentialChange`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/PairingGrantStore.ts:234](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/PairingGrantStore.ts#L234)
- Shape: `{ type: "pairingLinkUpserted"; pairingLink: AuthPairingLink } | { type: "pairingLinkRemoved"; id: string } | { type: "connectDevicesChanged" }`

<a id="schema-bootstrapcredentialconnectapprovalpendingerror"></a>

## `BootstrapCredentialConnectApprovalPendingError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/PairingGrantStore.ts:92](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/PairingGrantStore.ts#L92-L101)
- Shape: `{ _tag: "BootstrapCredentialConnectApprovalPendingError"; pairingLinkId: string }`

<a id="schema-bootstrapcredentialconsumeavailableerror"></a>

## `BootstrapCredentialConsumeAvailableError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/PairingGrantStore.ts:172](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/PairingGrantStore.ts#L172-L181)
- Shape: `{ _tag: "BootstrapCredentialConsumeAvailableError"; cause: unknown }`

<a id="schema-bootstrapcredentialconsumeerror"></a>

## `BootstrapCredentialConsumeError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/PairingGrantStore.ts:161](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/PairingGrantStore.ts#L161-L170)
- Shape: `{ _tag: "BootstrapCredentialConsumeError"; cause: unknown }`

<a id="schema-bootstrapcredentialerror"></a>

## `BootstrapCredentialError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/PairingGrantStore.ts:219](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/PairingGrantStore.ts#L219-L223)
- Shape: `BootstrapCredentialInvalidError | BootstrapCredentialInternalError | BootstrapCredentialScopeNotGrantedError`

<a id="schema-bootstrapcredentialinternalerror"></a>

## `BootstrapCredentialInternalError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/PairingGrantStore.ts:206](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/PairingGrantStore.ts#L206-L215)
- Shape: `ActivePairingLinksLoadError | PairingLinkRevokeError | PairingCredentialIssueError | PairingCredentialRandomGenerationError | BootstrapCredentialConsumeError | BootstrapCredentialConsumeAvailableError | BootstrapCredentialLookupError | ConnectDevicesError`

<a id="schema-bootstrapcredentialinvaliderror"></a>

## `BootstrapCredentialInvalidError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/PairingGrantStore.ts:103](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/PairingGrantStore.ts#L103-L109)
- Shape: `UnknownBootstrapCredentialError | ExpiredBootstrapCredentialError | BootstrapCredentialProofKeyMismatchError | UnavailableBootstrapCredentialError | BootstrapCredentialConnectApprovalPendingError`

<a id="schema-bootstrapcredentiallookuperror"></a>

## `BootstrapCredentialLookupError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/PairingGrantStore.ts:195](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/PairingGrantStore.ts#L195-L204)
- Shape: `{ _tag: "BootstrapCredentialLookupError"; cause: unknown }`

<a id="schema-bootstrapcredentialproofkeymismatcherror"></a>

## `BootstrapCredentialProofKeyMismatchError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/PairingGrantStore.ts:64](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/PairingGrantStore.ts#L64-L71)
- Shape: `{ _tag: "BootstrapCredentialProofKeyMismatchError" }`

<a id="schema-bootstrapcredentialscopenotgrantederror"></a>

## `BootstrapCredentialScopeNotGrantedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/PairingGrantStore.ts:82](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/PairingGrantStore.ts#L82-L89)
- Shape: `{ _tag: "BootstrapCredentialScopeNotGrantedError" }`

<a id="schema-connectdeviceserror"></a>

## `ConnectDevicesError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/PairingGrantStore.ts:183](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/PairingGrantStore.ts#L183-L193)
- Shape: `{ _tag: "ConnectDevicesError"; operation: "list" | "trust" | "revoke" | "record-request"; cause: unknown }`

<a id="schema-expiredbootstrapcredentialerror"></a>

## `ExpiredBootstrapCredentialError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/PairingGrantStore.ts:55](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/PairingGrantStore.ts#L55-L62)
- Shape: `{ _tag: "ExpiredBootstrapCredentialError" }`

<a id="schema-invalidsessionexpirationclaimerror"></a>

## `InvalidSessionExpirationClaimError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:160](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L160-L170)
- Shape: `{ _tag: "InvalidSessionExpirationClaimError"; sessionId: makeEntityId; expirationClaim: number }`

<a id="schema-invalidsessiontokenpayloaderror"></a>

## `InvalidSessionTokenPayloadError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:102](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L102-L111)
- Shape: `{ _tag: "InvalidSessionTokenPayloadError"; cause: unknown }`

<a id="schema-invalidsessiontokensignatureerror"></a>

## `InvalidSessionTokenSignatureError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:93](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L93-L100)
- Shape: `{ _tag: "InvalidSessionTokenSignatureError" }`

<a id="schema-invalidwebsockettokenpayloaderror"></a>

## `InvalidWebSocketTokenPayloadError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:190](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L190-L199)
- Shape: `{ _tag: "InvalidWebSocketTokenPayloadError"; cause: unknown }`

<a id="schema-invalidwebsockettokensignatureerror"></a>

## `InvalidWebSocketTokenSignatureError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:181](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L181-L188)
- Shape: `{ _tag: "InvalidWebSocketTokenSignatureError" }`

<a id="schema-malformedsessiontokenerror"></a>

## `MalformedSessionTokenError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:84](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L84-L91)
- Shape: `{ _tag: "MalformedSessionTokenError" }`

<a id="schema-malformedwebsockettokenerror"></a>

## `MalformedWebSocketTokenError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:172](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L172-L179)
- Shape: `{ _tag: "MalformedWebSocketTokenError" }`

<a id="schema-mcpoauthpageerror"></a>

## `McpOAuthPageError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/McpOAuth.ts:164](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/McpOAuth.ts#L164-L171)
- Shape: `{ _tag: "McpOAuthPageError"; description: string }`

<a id="schema-mcpoauthredirecterror"></a>

## `McpOAuthRedirectError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/McpOAuth.ts:173](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/McpOAuth.ts#L173-L181)
- Shape: `{ _tag: "McpOAuthRedirectError"; error: "invalid_request" | "unsupported_response_type" | "invalid_target"; description: string; redirectUri: string; state?: string }`

<a id="schema-othersessionsrevocationerror"></a>

## `OtherSessionsRevocationError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:358](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L358-L368)
- Shape: `{ _tag: "OtherSessionsRevocationError"; currentSessionId: makeEntityId; cause: unknown }`

<a id="schema-pairingcredentialissueerror"></a>

## `PairingCredentialIssueError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/PairingGrantStore.ts:135](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/PairingGrantStore.ts#L135-L147)
- Shape: `{ _tag: "PairingCredentialIssueError"; pairingLinkId: string; subject: string; label?: string; cause: unknown }`

<a id="schema-pairingcredentialrandomgenerationerror"></a>

## `PairingCredentialRandomGenerationError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/PairingGrantStore.ts:149](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/PairingGrantStore.ts#L149-L159)
- Shape: `{ _tag: "PairingCredentialRandomGenerationError"; operation: "generate-id" | "generate-token"; cause: unknown }`

<a id="schema-pairinglinkrevokeerror"></a>

## `PairingLinkRevokeError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/PairingGrantStore.ts:123](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/PairingGrantStore.ts#L123-L133)
- Shape: `{ _tag: "PairingLinkRevokeError"; pairingLinkId: string; cause: unknown }`

<a id="schema-proofkeysessionserror"></a>

## `ProofKeySessionsError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:370](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L370-L380)
- Shape: `{ _tag: "ProofKeySessionsError"; operation: "lookup" | "revoke"; cause: unknown }`

<a id="schema-secretstoreconcurrentreaderror"></a>

## `SecretStoreConcurrentReadError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/ServerSecretStore.ts:87](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/ServerSecretStore.ts#L87-L96)
- Shape: `{ _tag: "SecretStoreConcurrentReadError"; resource: string }`

<a id="schema-secretstoredecodeerror"></a>

## `SecretStoreDecodeError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/ServerSecretStore.ts:109](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/ServerSecretStore.ts#L109-L118)
- Shape: `{ _tag: "SecretStoreDecodeError"; resource: string; cause: unknown }`

<a id="schema-secretstoreencodeerror"></a>

## `SecretStoreEncodeError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/ServerSecretStore.ts:120](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/ServerSecretStore.ts#L120-L129)
- Shape: `{ _tag: "SecretStoreEncodeError"; resource: string; cause: unknown }`

<a id="schema-secretstoreerror"></a>

## `SecretStoreError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/ServerSecretStore.ts:131](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/ServerSecretStore.ts#L131-L142)
- Shape: `SecretStoreSecureError | SecretStoreNameError | SecretStoreReadError | SecretStoreTemporaryPathError | SecretStorePersistError | SecretStoreRandomGenerationError | SecretStoreConcurrentReadError | SecretStoreRemoveError | SecretStoreDecodeError | SecretStoreEncodeError`

<a id="schema-secretstorenameerror"></a>

## `SecretStoreNameError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/ServerSecretStore.ts:32](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/ServerSecretStore.ts#L32-L41)
- Shape: `{ _tag: "SecretStoreNameError"; resource: string }`

<a id="schema-secretstorepersisterror"></a>

## `SecretStorePersistError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/ServerSecretStore.ts:65](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/ServerSecretStore.ts#L65-L74)
- Shape: `{ _tag: "SecretStorePersistError"; resource: string; cause: unknown }`

<a id="schema-secretstorerandomgenerationerror"></a>

## `SecretStoreRandomGenerationError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/ServerSecretStore.ts:76](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/ServerSecretStore.ts#L76-L85)
- Shape: `{ _tag: "SecretStoreRandomGenerationError"; resource: string; cause: unknown }`

<a id="schema-secretstorereaderror"></a>

## `SecretStoreReadError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/ServerSecretStore.ts:43](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/ServerSecretStore.ts#L43-L52)
- Shape: `{ _tag: "SecretStoreReadError"; resource: string; cause: unknown }`

<a id="schema-secretstoreremoveerror"></a>

## `SecretStoreRemoveError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/ServerSecretStore.ts:98](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/ServerSecretStore.ts#L98-L107)
- Shape: `{ _tag: "SecretStoreRemoveError"; resource: string; cause: unknown }`

<a id="schema-secretstoresecureerror"></a>

## `SecretStoreSecureError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/ServerSecretStore.ts:21](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/ServerSecretStore.ts#L21-L30)
- Shape: `{ _tag: "SecretStoreSecureError"; resource: string; cause: unknown }`

<a id="schema-secretstoretemporarypatherror"></a>

## `SecretStoreTemporaryPathError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/ServerSecretStore.ts:54](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/ServerSecretStore.ts#L54-L63)
- Shape: `{ _tag: "SecretStoreTemporaryPathError"; resource: string; cause: unknown }`

<a id="schema-serverauthauthenticatedaccesstokenissueerror"></a>

## `ServerAuthAuthenticatedAccessTokenIssueError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:161](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L161-L170)
- Shape: `{ _tag: "ServerAuthAuthenticatedAccessTokenIssueError"; cause: unknown }`

<a id="schema-serverauthauthenticatedsessionissueerror"></a>

## `ServerAuthAuthenticatedSessionIssueError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:150](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L150-L159)
- Shape: `{ _tag: "ServerAuthAuthenticatedSessionIssueError"; cause: unknown }`

<a id="schema-serverauthbootstrapcredentialvalidationerror"></a>

## `ServerAuthBootstrapCredentialValidationError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:128](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L128-L137)
- Shape: `{ _tag: "ServerAuthBootstrapCredentialValidationError"; cause: unknown }`

<a id="schema-serverauthcloudhealthjwtsigningerror"></a>

## `ServerAuthCloudHealthJwtSigningError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:342](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L342-L351)
- Shape: `{ _tag: "ServerAuthCloudHealthJwtSigningError"; cause: unknown }`

<a id="schema-serverauthcloudlinkjwtsigningerror"></a>

## `ServerAuthCloudLinkJwtSigningError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:313](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L313-L322)
- Shape: `{ _tag: "ServerAuthCloudLinkJwtSigningError"; cause: unknown }`

<a id="schema-serverauthcloudmintjwtsigningerror"></a>

## `ServerAuthCloudMintJwtSigningError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:353](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L353-L362)
- Shape: `{ _tag: "ServerAuthCloudMintJwtSigningError"; cause: unknown }`

<a id="schema-serverauthcloudmintpublickeymissingerror"></a>

## `ServerAuthCloudMintPublicKeyMissingError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:324](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L324-L331)
- Shape: `{ _tag: "ServerAuthCloudMintPublicKeyMissingError" }`

<a id="schema-serverauthcloudrelayissuermissingerror"></a>

## `ServerAuthCloudRelayIssuerMissingError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:333](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L333-L340)
- Shape: `{ _tag: "ServerAuthCloudRelayIssuerMissingError" }`

<a id="schema-serverauthconnectapprovalpendingerror"></a>

## `ServerAuthConnectApprovalPendingError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:471](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L471-L478)
- Shape: `{ _tag: "ServerAuthConnectApprovalPendingError" }`

<a id="schema-serverauthconnectdeviceserror"></a>

## `ServerAuthConnectDevicesError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:364](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L364-L373)
- Shape: `{ _tag: "ServerAuthConnectDevicesError"; cause: unknown }`

<a id="schema-serverauthcredentialerror"></a>

## `ServerAuthCredentialError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:425](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L425-L428)
- Shape: `ServerAuthMissingCredentialError | ServerAuthInvalidCredentialError`

<a id="schema-serverauthdpopreplaykeycalculationerror"></a>

## `ServerAuthDpopReplayKeyCalculationError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:271](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L271-L280)
- Shape: `{ _tag: "ServerAuthDpopReplayKeyCalculationError"; cause: unknown }`

<a id="schema-serverauthdpopreplaystaterecorderror"></a>

## `ServerAuthDpopReplayStateRecordError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:260](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L260-L269)
- Shape: `{ _tag: "ServerAuthDpopReplayStateRecordError"; cause: unknown }`

<a id="schema-serverauthforbiddenoperationerror"></a>

## `ServerAuthForbiddenOperationError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:493](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L493-L500)
- Shape: `{ _tag: "ServerAuthForbiddenOperationError" }`

<a id="schema-serverauthinternalerror"></a>

## `ServerAuthInternalError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:375](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L375-L399)
- Shape: `ServerAuthBootstrapCredentialValidationError | ServerAuthSessionCredentialValidationError | ServerAuthAuthenticatedSessionIssueError | ServerAuthAuthenticatedAccessTokenIssueError | ServerAuthPairingLinkCreationError | ServerAuthPairingLinksListError | ServerAuthPairingLinkRevocationError | ServerAuthSessionTokenIssueError | ServerAuthSessionsListError | ServerAuthSessionRevocationError | ServerAuthOtherSessionsRevocationError | ServerAuthWebSocketTokenIssueError | ServerAuthDpopReplayStateRecordError | ServerAuthDpopReplayKeyCalculationError | ServerAuthLinkedCloudAccountVerificationError | ServerAuthLinkedCloudAccountReadError | ServerAuthLinkedCloudAccountMissingError | ServerAuthCloudLinkJwtSigningError | ServerAuthCloudMintPublicKeyMissingError | ServerAuthCloudRelayIssuerMissingError | ServerAuthCloudHealthJwtSigningError | ServerAuthCloudMintJwtSigningError | ServerAuthConnectDevicesError`

<a id="schema-serverauthinvalidcredentialerror"></a>

## `ServerAuthInvalidCredentialError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:412](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L412-L423)
- Shape: `{ _tag: "ServerAuthInvalidCredentialError"; diagnostic?: string; dpopFailureReason?: DpopFailureReason; cause?: unknown }`

<a id="schema-serverauthinvalidrequesterror"></a>

## `ServerAuthInvalidRequestError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:459](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L459-L462)
- Shape: `ServerAuthInvalidScopeError | ServerAuthScopeNotGrantedError`

<a id="schema-serverauthinvalidscopeerror"></a>

## `ServerAuthInvalidScopeError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:441](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L441-L448)
- Shape: `{ _tag: "ServerAuthInvalidScopeError" }`

<a id="schema-serverauthlinkedcloudaccountmissingerror"></a>

## `ServerAuthLinkedCloudAccountMissingError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:304](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L304-L311)
- Shape: `{ _tag: "ServerAuthLinkedCloudAccountMissingError" }`

<a id="schema-serverauthlinkedcloudaccountreaderror"></a>

## `ServerAuthLinkedCloudAccountReadError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:293](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L293-L302)
- Shape: `{ _tag: "ServerAuthLinkedCloudAccountReadError"; cause: unknown }`

<a id="schema-serverauthlinkedcloudaccountverificationerror"></a>

## `ServerAuthLinkedCloudAccountVerificationError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:282](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L282-L291)
- Shape: `{ _tag: "ServerAuthLinkedCloudAccountVerificationError"; cause: unknown }`

<a id="schema-serverauthmcpapprovalcodeerror"></a>

## `ServerAuthMcpApprovalCodeError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:480](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L480-L491)
- Shape: `{ _tag: "ServerAuthMcpApprovalCodeError"; reason: "unknown_or_used" | "not_a_pairing_code" | "insufficient_scope" }`

<a id="schema-serverauthmissingcredentialerror"></a>

## `ServerAuthMissingCredentialError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:403](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L403-L410)
- Shape: `{ _tag: "ServerAuthMissingCredentialError" }`

<a id="schema-serverauthothersessionsrevocationerror"></a>

## `ServerAuthOtherSessionsRevocationError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:238](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L238-L247)
- Shape: `{ _tag: "ServerAuthOtherSessionsRevocationError"; cause: unknown }`

<a id="schema-serverauthpairinglinkcreationerror"></a>

## `ServerAuthPairingLinkCreationError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:172](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L172-L181)
- Shape: `{ _tag: "ServerAuthPairingLinkCreationError"; cause: unknown }`

<a id="schema-serverauthpairinglinkrevocationerror"></a>

## `ServerAuthPairingLinkRevocationError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:194](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L194-L203)
- Shape: `{ _tag: "ServerAuthPairingLinkRevocationError"; cause: unknown }`

<a id="schema-serverauthpairinglinkslisterror"></a>

## `ServerAuthPairingLinksListError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:183](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L183-L192)
- Shape: `{ _tag: "ServerAuthPairingLinksListError"; cause: unknown }`

<a id="schema-serverauthscopenotgrantederror"></a>

## `ServerAuthScopeNotGrantedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:450](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L450-L457)
- Shape: `{ _tag: "ServerAuthScopeNotGrantedError" }`

<a id="schema-serverauthsessioncredentialvalidationerror"></a>

## `ServerAuthSessionCredentialValidationError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:139](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L139-L148)
- Shape: `{ _tag: "ServerAuthSessionCredentialValidationError"; cause: unknown }`

<a id="schema-serverauthsessionrevocationerror"></a>

## `ServerAuthSessionRevocationError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:227](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L227-L236)
- Shape: `{ _tag: "ServerAuthSessionRevocationError"; cause: unknown }`

<a id="schema-serverauthsessiontokenissueerror"></a>

## `ServerAuthSessionTokenIssueError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:205](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L205-L214)
- Shape: `{ _tag: "ServerAuthSessionTokenIssueError"; cause: unknown }`

<a id="schema-serverauthsessionslisterror"></a>

## `ServerAuthSessionsListError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:216](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L216-L225)
- Shape: `{ _tag: "ServerAuthSessionsListError"; cause: unknown }`

<a id="schema-serverauthwebsockettokenissueerror"></a>

## `ServerAuthWebSocketTokenIssueError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:249](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L249-L258)
- Shape: `{ _tag: "ServerAuthWebSocketTokenIssueError"; cause: unknown }`

<a id="schema-sessionclaimsencodingerror"></a>

## `SessionClaimsEncodingError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:274](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L274-L285)
- Shape: `{ _tag: "SessionClaimsEncodingError"; sessionId: makeEntityId; operation: "encode_session_claims" | "encode_websocket_claims"; cause: unknown }`

<a id="schema-sessioncredentialchange"></a>

## `SessionCredentialChange`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:74](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L74)
- Shape: `{ type: "clientUpserted"; clientSession: AuthClientSession } | { type: "clientRemoved"; sessionId: AuthSessionId }`

<a id="schema-sessioncredentialerror"></a>

## `SessionCredentialError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:395](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L395-L398)
- Shape: `SessionCredentialInvalidError | SessionCredentialInternalError`

<a id="schema-sessioncredentialinternalerror"></a>

## `SessionCredentialInternalError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:382](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L382-L392)
- Shape: `SessionClaimsEncodingError | SessionCredentialIssueError | SessionCredentialVerificationError | WebSocketTokenIssueError | WebSocketTokenVerificationError | ActiveSessionsListError | SessionRevocationError | OtherSessionsRevocationError | ProofKeySessionsError`

<a id="schema-sessioncredentialinvaliderror"></a>

## `SessionCredentialInvalidError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:250](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L250-L266)
- Shape: `MalformedSessionTokenError | InvalidSessionTokenSignatureError | InvalidSessionTokenPayloadError | SessionTokenExpiredError | UnknownSessionTokenError | SessionTokenRevokedError | SessionTokenNotRenewableError | InvalidSessionExpirationClaimError | MalformedWebSocketTokenError | InvalidWebSocketTokenSignatureError | InvalidWebSocketTokenPayloadError | WebSocketTokenExpiredError | UnknownWebSocketSessionError | WebSocketSessionExpiredError | WebSocketSessionRevokedError`

<a id="schema-sessioncredentialissueerror"></a>

## `SessionCredentialIssueError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:287](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L287-L297)
- Shape: `{ _tag: "SessionCredentialIssueError"; sessionId?: makeEntityId; cause: unknown }`

<a id="schema-sessioncredentialverificationerror"></a>

## `SessionCredentialVerificationError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:299](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L299-L309)
- Shape: `{ _tag: "SessionCredentialVerificationError"; sessionId: makeEntityId; cause: unknown }`

<a id="schema-sessionrevocationerror"></a>

## `SessionRevocationError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:346](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L346-L356)
- Shape: `{ _tag: "SessionRevocationError"; sessionId: makeEntityId; cause: unknown }`

<a id="schema-sessiontokenexpirederror"></a>

## `SessionTokenExpiredError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:113](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L113-L124)
- Shape: `{ _tag: "SessionTokenExpiredError"; sessionId: makeEntityId; expiresAt: date; observedAt: date }`

<a id="schema-sessiontokennotrenewableerror"></a>

## `SessionTokenNotRenewableError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:137](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L137-L146)
- Shape: `{ _tag: "SessionTokenNotRenewableError"; sessionId: makeEntityId }`

<a id="schema-sessiontokenrevokederror"></a>

## `SessionTokenRevokedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:148](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L148-L158)
- Shape: `{ _tag: "SessionTokenRevokedError"; sessionId: makeEntityId; revokedAt: date }`

<a id="schema-unavailablebootstrapcredentialerror"></a>

## `UnavailableBootstrapCredentialError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/PairingGrantStore.ts:73](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/PairingGrantStore.ts#L73-L80)
- Shape: `{ _tag: "UnavailableBootstrapCredentialError" }`

<a id="schema-unknownbootstrapcredentialerror"></a>

## `UnknownBootstrapCredentialError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/PairingGrantStore.ts:46](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/PairingGrantStore.ts#L46-L53)
- Shape: `{ _tag: "UnknownBootstrapCredentialError" }`

<a id="schema-unknownsessiontokenerror"></a>

## `UnknownSessionTokenError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:126](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L126-L135)
- Shape: `{ _tag: "UnknownSessionTokenError"; sessionId: makeEntityId }`

<a id="schema-unknownwebsocketsessionerror"></a>

## `UnknownWebSocketSessionError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:214](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L214-L223)
- Shape: `{ _tag: "UnknownWebSocketSessionError"; sessionId: makeEntityId }`

<a id="schema-websocketsessionexpirederror"></a>

## `WebSocketSessionExpiredError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:225](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L225-L236)
- Shape: `{ _tag: "WebSocketSessionExpiredError"; sessionId: makeEntityId; expiresAt: date; observedAt: date }`

<a id="schema-websocketsessionrevokederror"></a>

## `WebSocketSessionRevokedError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:238](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L238-L248)
- Shape: `{ _tag: "WebSocketSessionRevokedError"; sessionId: makeEntityId; revokedAt: date }`

<a id="schema-websockettokenexpirederror"></a>

## `WebSocketTokenExpiredError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:201](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L201-L212)
- Shape: `{ _tag: "WebSocketTokenExpiredError"; sessionId: makeEntityId; expiresAt: date; observedAt: date }`

<a id="schema-websockettokenissueerror"></a>

## `WebSocketTokenIssueError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:311](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L311-L321)
- Shape: `{ _tag: "WebSocketTokenIssueError"; sessionId: makeEntityId; cause: unknown }`

<a id="schema-websockettokenverificationerror"></a>

## `WebSocketTokenVerificationError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:323](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L323-L333)
- Shape: `{ _tag: "WebSocketTokenVerificationError"; sessionId: makeEntityId; cause: unknown }`

<a id="schema-isbootstrapcredentialinternalerror"></a>

## `isBootstrapCredentialInternalError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/PairingGrantStore.ts:217](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/PairingGrantStore.ts#L217)
- Shape: `Schema.is`

<a id="schema-issecretstoreerror"></a>

## `isSecretStoreError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/ServerSecretStore.ts:144](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/ServerSecretStore.ts#L144)
- Shape: `Schema.is`

<a id="schema-isserverauthcredentialerror"></a>

## `isServerAuthCredentialError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:430](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L430)
- Shape: `Schema.is`

<a id="schema-isserverauthinternalerror"></a>

## `isServerAuthInternalError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:401](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L401)
- Shape: `Schema.is`

<a id="schema-isserverauthinvalidrequesterror"></a>

## `isServerAuthInvalidRequestError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/EnvironmentAuth.ts:464](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/EnvironmentAuth.ts#L464)
- Shape: `Schema.is`

<a id="schema-issessioncredentialinvaliderror"></a>

## `isSessionCredentialInvalidError`

- Kind: schema
- Workspace: [t3](../../architecture/t3.md)
- Source: [apps/server/src/auth/SessionStore.ts:268](https://github.com/pingdotgg/t3code/blob/be521199aace1a0b446f4db4a1181ef994aaa1e2/apps/server/src/auth/SessionStore.ts#L268)
- Shape: `Schema.is`
