> ## Documentation Index
> Fetch the complete documentation index at: https://developers.squads.so/llms.txt
> Use this file to discover all available pages before exploring further.

# EmailAuthState

Authentication state for email-based accounts

## Properties

| Property                                        | Type                                                                                        | Description                                                                 |
| ----------------------------------------------- | ------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| <a id="user" /> `user`                          | `CreateAccountResponse` \| `InitAuthResponse`                                               | User data from createAccount or initAuth (email pending verification)       |
| <a id="account" /> `account`                    | `CompleteAuthAndCreateAccountResponse` \| `CompleteAuthResponse`                            | Complete account data after OTP verification                                |
| <a id="sessionsecrets" /> `sessionSecrets`      | `SessionSecrets`                                                                            | Session secrets for transaction signing (ephemeral)                         |
| <a id="isauthenticated" /> `isAuthenticated`    | `boolean`                                                                                   | Whether user is fully authenticated                                         |
| <a id="isexistinguser" /> `isExistingUser`      | `boolean`                                                                                   | Whether this is an existing user (login) or new user (signup)               |
| <a id="sessionstatus" /> `sessionStatus`        | [`SessionStatus`](/grid/v1/sdk-reference/react/reference/latest/type-aliases/SessionStatus) | Current session status (active, needs\_refresh, expired, unauthenticated)   |
| <a id="sessionexpiresat" /> `sessionExpiresAt`  | `number`                                                                                    | Unix timestamp (seconds) when the session expires, or null if not available |
| <a id="isloading" /> `isLoading`                | `boolean`                                                                                   | Loading state for async operations (operation name if loading)              |
| <a id="loadingoperation" /> `loadingOperation?` | `string`                                                                                    | -                                                                           |
| <a id="error" /> `error`                        | `string`                                                                                    | Error state                                                                 |
| <a id="errorcode" /> `errorCode?`               | `string`                                                                                    | -                                                                           |
