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

# Sign-in and security

> Choose how you sign in to naga.ac, turn on two-factor authentication, recover a lost second factor, and close your account.

Your naga.ac sign-in protects the balance and the keys of every organization you belong to. Use this guide to pick your sign-in methods, add a second factor, and close the account when you no longer need it.

## Before you begin

You can sign in with any of these methods:

* Email and password
* A magic link sent by email
* Google, GitHub, or Discord

If sign-up says that an account already exists for your inbox, sign in to that account instead.

## Connect a sign-in method

1. Open **Profile → Sign-in methods**.
2. Connect or disconnect Google, GitHub, and Discord.

## Turn on two-factor authentication

1. Open **Profile → Security**.
2. Turn on two-factor authentication and follow the prompts.
3. Save the backup codes somewhere safe.
   A backup code is the way back in if you lose the second factor.

## Recover a lost second factor

1. Open [Recover account](https://naga.ac/auth/recover-account).
2. Sign in with a backup code.

## Close your account

1. Make sure you own no team organization.
   An account that still owns one can't be closed. [Transfer ownership](https://docs.naga.ac/account/organizations.md#roles) first.
2. Select **Profile → Security → Close account**.
   NagaAI signs you out everywhere and disables the keys of your personal organization.

NagaAI keeps payment records after an account closes.

## See also

* [Organizations](https://docs.naga.ac/account/organizations.md): roles, members, and leaving a team.
* [API keys](https://docs.naga.ac/account/api-keys.md): limit and expire the keys that call models.
* [Privacy and logging](https://docs.naga.ac/account/privacy-and-logging.md): which request data NagaAI keeps.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.