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: fire@scan.com Default password: password123

Custom email:

bash
auth --create-account --email custom@test.com

-e, -P ​

Login with credentials.

bash
auth -e user@example.com -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         : fire@scan.com
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 test@example.com

Use existing account ​

bash
auth -e admin@company.com -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 ​