--- title: snrd auth register description: Register a new decentralized identity using WebAuthn/Passkey authentication --- # snrd auth register Register a new decentralized identity using WebAuthn/Passkey authentication. This command will: 1. Start a local auth server 2. Open your browser for WebAuthn credential creation 3. Create a DID document with your WebAuthn credential 4. Auto-create a DWN vault for data storage ## Usage ```shell snrd auth register [flags] ``` ## Flags Username for the new identity Automatically create vault for DID Use WebAuthn for registration Help for register ## Global Flags Transaction broadcasting mode (sync|async) Specify Chain ID for sending Tx Fees to pay along with transaction (e.g., 10aatom) Name or address of private key with which to sign Adjustment factor to be multiplied against the estimate returned by the tx simulation Gas prices to determine the transaction fee (e.g., 10aatom) Directory for config and data Select keyring's backend The logging format (json|plain) The logging level Disable colored logs Tendermint RPC interface for this chain Print out full stack trace on errors ## Examples ### Basic registration ```shell snrd auth register --username alice ``` ### Registration without auto vault creation ```shell snrd auth register --username alice --auto-vault=false ``` ### Registration with custom chain ID ```shell snrd auth register --username alice --chain-id sonrtest_1-1 ``` ## See Also - [snrd auth](./snrd_auth.mdx) - User authentication with Passkeys - [snrd auth login](./snrd_auth_login.mdx) - Login with WebAuthn authentication