Skip to content

Fix email and password example for javascript #920

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

Merged
merged 2 commits into from
Apr 22, 2024
Merged

Fix email and password example for javascript #920

merged 2 commits into from
Apr 22, 2024

Conversation

piotrekkr
Copy link
Contributor

@piotrekkr piotrekkr commented Apr 19, 2024

Current javascript example for sign in generates

{"errors":[{"message":"is unknown","long_message":"email_address is not a valid parameter for this request.","code":"form_param_unknown","meta":{"param_name":"email_address"}}],"clerk_trace_id":"89afc5e93845ef1e7bedb54ab80e3ef7"}

Should be identifier instead of emailAddress. Also there was no setActive function defined.

Current javascript example for sign in generates 
```
{"errors":[{"message":"is unknown","long_message":"email_address is not a valid parameter for this request.","code":"form_param_unknown","meta":{"param_name":"email_address"}}],"clerk_trace_id":"89afc5e93845ef1e7bedb54ab80e3ef7"}
```
Should be `identifier` instead of `emailAddress`.
@piotrekkr piotrekkr requested a review from a team as a code owner April 19, 2024 11:36
@piotrekkr piotrekkr changed the title Fix field name in email and password example for javascript Fix email and password example for javascript Apr 19, 2024
@S3Prototype S3Prototype merged commit 17ced68 into clerk:main Apr 22, 2024
3 checks passed
@piotrekkr piotrekkr deleted the patch-1 branch April 22, 2024 14:39
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

Successfully merging this pull request may close these issues.

2 participants