Skip to content

Using MetadataField for boolean values #96

@bcorman

Description

@bcorman

Feature request

I'd like to add some checkboxes on new user signup for consenting to terms of service and opt-in to marketing emails. I'd like this to be integrated into the auth ui.

Is your feature request related to a problem? Please describe.

MetadataField assumes the only values we want from users on signup are text, like username. I looked at extrametadata but (forgive me if I'm wrong) that doesn't seem to allow the user to edit values.

Describe the solution you'd like

Potentially a different class, e.g. BooleanMetadataField, with a checkbox widget, or perhaps a new property on MetadataField to specify what kind of metadata to solicit from the user

Describe alternatives you've considered

Apologies if there's some obvious solution here that I'm missing. This is my first time working on auth so I'm a bit unfamiliar with what the best practices are (which is why I'm using this package rather than trying to roll my own auth form).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions