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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/custom-flows/email-password.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1177,12 +1177,12 @@ In email/password authentication, the sign-in is a process that requires users t
</div>
<script>
const SignIn = async () => {
const emailAddress = document.getElementById('email').value;
const identifier = document.getElementById('email').value;
const password = document.getElementById('password').value;
const {client} = window.Clerk;
const {client, setActive} = window.Clerk;
try {
const signInAttempt = await client.signIn.create({
emailAddress,
identifier,
password
});
if (signInAttempt.status === "complete") {
Expand Down
Loading