Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set user_metadata during signup #440

Open
mikeslattery opened this issue Mar 17, 2021 · 1 comment
Open

Set user_metadata during signup #440

mikeslattery opened this issue Mar 17, 2021 · 1 comment

Comments

@mikeslattery
Copy link

mikeslattery commented Mar 17, 2021

Usage. This will set user_metadata with city and state values.

    netlifyIdentity.open('signup', { city: 'Orlando', state: 'FL' })

I've written this already. I'm posting here to see if there is interest in me cleaning up my code and submitting a Github PR that will get approved.

(I use this to set roles and wrote a identity-signup function to copy over whitelisted role values to app_metadata.)

I also made it possible to hide the tab header (Sign up|Log in). I did this in the same commit so clicking a "Login" button can't be used to "signup" without values for user_metadata.

https://gitlab.com/mikeslattery/netlify-identity-widget/-/commit/c8edddbdbce99bddb150ebce01650a98e0ff4816

@Nittarab
Copy link

I think this is really useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants