Files
sonr/docs/reference/commands/snrd_auth.mdx
T

67 lines
2.2 KiB
Plaintext
Raw Normal View History

2025-10-03 14:45:52 -04:00
---
title: snrd auth
description: User authentication with Passkeys
---
Manage user authentication using WebAuthn/Passkey technology for decentralized identity.
## Usage
```shell
snrd auth [command]
```
## Available Commands
| Command | Description |
|---------|-------------|
| `login` | Login with WebAuthn authentication |
| `register` | Register a new identity using WebAuthn |
## Flags
2026-09-02 16:53:38 -04:00
<TypeTable
type={{
"help": { type: "boolean", description: "Help for auth" },
}}
/>
2025-10-03 14:45:52 -04:00
## Global Flags
2026-09-02 16:53:38 -04:00
<TypeTable
type={{
"broadcast-mode": { type: "string", default: "sync", description: "Transaction broadcasting mode (sync|async)" },
"chain-id": { type: "string", description: "Specify Chain ID for sending Tx" },
"fees": { type: "string", description: "Fees to pay along with transaction (e.g., 10aatom)" },
"from": { type: "string", description: "Name or address of private key with which to sign" },
"gas-adjustment": { type: "float", default: "1", description: "Adjustment factor to be multiplied against the estimate returned by the tx simulation" },
"gas-prices": { type: "string", description: "Gas prices to determine the transaction fee (e.g., 10aatom)" },
"home": { type: "string", default: "~/.sonr", description: "Directory for config and data" },
"keyring-backend": { type: "string", default: "os", description: "Select keyring's backend" },
"log_format": { type: "string", default: "plain", description: "The logging format (json|plain)" },
"log_level": { type: "string", default: "info", description: "The logging level (trace|debug|info|warn|error|fatal|panic|disabled)" },
"log_no_color": { type: "boolean", description: "Disable colored logs" },
"node": { type: "string", default: "tcp://localhost:26657", description: "Tendermint RPC interface for this chain" },
"trace": { type: "boolean", description: "Print out full stack trace on errors" },
}}
/>
2025-10-03 14:45:52 -04:00
## Examples
### Register a new identity
```shell
snrd auth register --username alice
```
### Login with existing identity
```shell
snrd auth login --username alice
```
## See Also
2026-09-02 16:53:38 -04:00
- [snrd auth register](./snrd_auth_register) - Register a new identity using WebAuthn
- [snrd auth login](./snrd_auth) - Login with WebAuthn authentication