Authentication
Manage user identity and session access to CosmicAC services. Authentication verifies your identity and authorizes access to your resources. Use these commands to log in, log out, and manage your credentials.
signup
Creates a new CosmicAC user account.
Usage
npx cosmicac signupExample
$ npx cosmicac signup
? Please enter the signup secret: jBKLFbuAa8TIwQaV77anCJxsd4woE2Bz
? Enter the email of the new user: user@example.com
? Enter the password for the new user: [input is masked]
? Select your role: (Use arrow keys)
❯ Customer
Provider
Signup successful!For the development environment, find the signup secret in the cosmicac-app-node config file at /config/common.json under the signupSecret key.
login
Authenticates an existing user and establishes a session.
Usage
npx cosmicac loginArguments
| Argument | Required | Description |
|---|---|---|
token | Yes | Authentication token |
Example
$ npx cosmicac login
Login successful! Your token has been saved.logout
Ends the current authenticated session.
Usage
npx cosmicac logoutExample
$ npx cosmicac logout
Logged out successfully!