Skip to content

[TOTP] Slice 2: Credential Entry Form and Secret Validation #67

@parthashirolkar

Description

@parthashirolkar

Parent

#65

What to build

Update the entry add/edit forms to support inputting the TOTP secret, including validation of Base32 secrets and automatic extraction of secrets from otpauth:// URIs.

Acceptance criteria

  • Update frontend Zod schemas in api/types.ts to include totp_secret.
  • Add a "TOTP Secret / URI" input field in AddCredential and EditCredential forms.
  • If an otpauth:// URI is pasted, parse it to extract the secret key, and pre-fill Title and Username if they are empty.
  • Validate base32 formatting on the backend during entry creation/updates and display clear validation errors to the user.
  • Write tests verifying form validation and URI parsing behavior.

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentIssue is ready to be picked up by an AI agent

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions