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

SignUpWithEmail vs CreateUser Metadata #15

Closed
fplaras opened this issue Dec 24, 2021 · 1 comment
Closed

SignUpWithEmail vs CreateUser Metadata #15

fplaras opened this issue Dec 24, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@fplaras
Copy link

fplaras commented Dec 24, 2021

Hello, comparing the CreateUser and SignUp methods for metadata the implementation seems to be different.
CreateUser method signature expects an object to be bound to a "data" property and the SignUp method signature is expecting a Dictionary of <string, object> to be bound to the "data" property. Wasn't sure if this was a bug.

param: Dictionary<string, object> metadata
Dictionary<string, object> data = new Dictionary<string, object> { { "email", email }, { "password", password }, { "data", metadata } };

param: object userData
Dictionary<string, object> dictionary = new Dictionary<string, object> { { "email", email }, { "password", password } }; if (userData != null) { dictionary.Add("data", userData); }

@acupofjose
Copy link
Collaborator

Oh my! Great catch. Yes, the CreateUser call is supposed to have a different format. I'll get that fixed and a test added. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants