Authenticate with LiberFi: register a new account, log in, manage session state, and verify wallet assignments.
Two login modes are supported:
1. Key-based (--key): Generates a local P-256 key pair and signs a
timestamp. Ideal for agent / headless / automated environments.
No email required; a TEE wallet is created automatically.
2. Email OTP: Sends a 6-digit code to the user's email.
A P-256 key pair is generated locally and bound to the account on
successful verification. A TEE wallet is created automatically.
After authentication, a LiberFi JWT is stored in ~/.liberfi/session.json. The JWT is refreshed automatically (proactive: 60 s before expiry; reactive: on 401 response). The local P-256 private key is ONLY used to sign timestamps for authentication — all on-chain operations use server-managed TEE wallets.
Trigger words: login, sign in, authenticate, register, create account, logout, sign out, verify, check auth, am I logged in, session status, who am I, my wallet address, my ac