Skip to content

Commit

Permalink
fix error message bug when registering (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
ylked authored Mar 21, 2024
1 parent b0c0dfe commit e57c368
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/Authentication/Passkey.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ async function requestRegister(username, email, credentials, challenge_id) {
}
}

await axios.post(routes.authentication.register, data);
return await axios.post(routes.authentication.register, data);
}

async function login(username_or_email) {
Expand All @@ -138,7 +138,7 @@ async function login(username_or_email) {

async function register(username, email){
const credentials = await createPublicKeyCredential(username, email);
await requestRegister(username, email, credentials.credentials, credentials.challenge_id);
return await requestRegister(username, email, credentials.credentials, credentials.challenge_id);
}


Expand Down

0 comments on commit e57c368

Please sign in to comment.