mirror of
https://github.com/sonr-io/sonr.git
synced 2026-09-16 23:16:25 +00:00
67 lines
2.2 KiB
Plaintext
67 lines
2.2 KiB
Plaintext
---
|
|
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
|
|
|
|
<TypeTable
|
|
type={{
|
|
"help": { type: "boolean", description: "Help for auth" },
|
|
}}
|
|
/>
|
|
|
|
## Global Flags
|
|
|
|
<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" },
|
|
}}
|
|
/>
|
|
|
|
## Examples
|
|
|
|
### Register a new identity
|
|
|
|
```shell
|
|
snrd auth register --username alice
|
|
```
|
|
|
|
### Login with existing identity
|
|
|
|
```shell
|
|
snrd auth login --username alice
|
|
```
|
|
|
|
## See Also
|
|
|
|
- [snrd auth register](./snrd_auth_register) - Register a new identity using WebAuthn
|
|
- [snrd auth login](./snrd_auth) - Login with WebAuthn authentication
|