Skip to content

auth

Manage Firebase authentication.

Usage

bash
auth [subcommand] [options]

Subcommands

--create-account

Create or log into test account.

bash
auth --create-account

Default email: [email protected] Default password: password123

Custom email:

bash
auth --create-account --email [email protected]

-e, -P

Login with credentials.

bash
auth -e [email protected] -P password123

--enum-providers

Enumerate enabled auth providers.

bash
auth --enum-providers

Output:

├── Provider: password      Status: Enabled
├── Provider: google.com    Status: Enabled
└── Provider: facebook.com  Status: Disabled

status

Check authentication status.

bash
auth status

Output:

Email         : [email protected]
User ID       : kXyZ123AbCdEf456
Email Verified: Yes
Token Active  : Yes

show-token

Display current JWT token.

bash
auth show-token

refresh

Manually refresh JWT token.

bash
auth refresh

Tokens automatically refresh when expired.

logout

Clear credentials and token.

bash
auth logout

Examples

Quick start

bash
auth --create-account

Custom test account

bash
auth --create-account --email [email protected]

Use existing account

bash
auth -e [email protected] -P securepassword

Check auth status

bash
auth status

Enumerate providers

bash
auth --enum-providers

Token management

Tokens are:

  • Automatically stored after login
  • Used for all requests
  • Refreshed when expired
  • Cleared on logout

Token location: In-memory and session files

See also