add register and login screens

This commit is contained in:
Jorrin
2024-04-20 00:11:02 +02:00
parent fcfd0d99cc
commit bbeb729156
20 changed files with 555 additions and 103 deletions

View File

@@ -71,7 +71,7 @@ export function useAuth() {
backendUrl,
publicKeyBase64Url,
);
const signature = await signChallenge(keys, challenge);
const signature = signChallenge(keys, challenge);
const loginResult = await loginAccount(backendUrl, {
challenge: {
code: challenge,
@@ -110,7 +110,7 @@ export function useAuth() {
registerData.recaptchaToken,
);
const keys = await keysFromMnemonic(registerData.mnemonic);
const signature = await signChallenge(keys, challenge);
const signature = signChallenge(keys, challenge);
const registerResult = await registerAccount(backendUrl, {
challenge: {
code: challenge,