---
title: snrd auth
description: User authentication with Passkeys
---

# snrd auth

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

<ParamField path="help" type="boolean">
  Help for auth
</ParamField>

## Global Flags

<ParamField path="broadcast-mode" type="string" default="sync">
  Transaction broadcasting mode (sync|async)
</ParamField>

<ParamField path="chain-id" type="string">
  Specify Chain ID for sending Tx
</ParamField>

<ParamField path="fees" type="string">
  Fees to pay along with transaction (e.g., 10aatom)
</ParamField>

<ParamField path="from" type="string">
  Name or address of private key with which to sign
</ParamField>

<ParamField path="gas-adjustment" type="float" default="1">
  Adjustment factor to be multiplied against the estimate returned by the tx simulation
</ParamField>

<ParamField path="gas-prices" type="string">
  Gas prices to determine the transaction fee (e.g., 10aatom)
</ParamField>

<ParamField path="home" type="string" default="~/.sonr">
  Directory for config and data
</ParamField>

<ParamField path="keyring-backend" type="string" default="os">
  Select keyring's backend
</ParamField>

<ParamField path="log_format" type="string" default="plain">
  The logging format (json|plain)
</ParamField>

<ParamField path="log_level" type="string" default="info">
  The logging level (trace|debug|info|warn|error|fatal|panic|disabled)
</ParamField>

<ParamField path="log_no_color" type="boolean">
  Disable colored logs
</ParamField>

<ParamField path="node" type="string" default="tcp://localhost:26657">
  Tendermint RPC interface for this chain
</ParamField>

<ParamField path="trace" type="boolean">
  Print out full stack trace on errors
</ParamField>

## 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.mdx) - Register a new identity using WebAuthn
- [snrd auth login](./snrd_auth_login.mdx) - Login with WebAuthn authentication