feat: srp removal, requested changes

This commit is contained in:
Daniel Hougaard
2025-07-30 04:44:25 +04:00
parent d5dd2e8bfd
commit 2d3b1b18d2
9 changed files with 15 additions and 24 deletions
@@ -110,8 +110,6 @@ export default function UserInfoStep({
attributionSource
});
console.log("Signed up", JSON.stringify(response, null, 2));
// unset signup JWT token and set JWT token
SecurityClient.setSignupToken("");
SecurityClient.setToken(response.token);
@@ -43,7 +43,7 @@ const attemptLogin = async ({
const telemetry = new Telemetry().getInstance();
if (loginMode === LoginMode.ServerSide) {
console.log("attempting login with server side");
console.log("Attempting login with server side...");
const data = await loginV3({
email,
password,
@@ -51,7 +51,7 @@ const attemptLogin = async ({
captchaToken
}).catch((err) => {
if (axios.isAxiosError(err) && err.response?.status === 400) {
if (err.response.data.error === "LegacyEncryptionScheme") {
if (err.response?.data?.error === "LegacyEncryptionScheme") {
createNotification({
text: "Failed to login without SRP, attempting to authenticate with legacy SRP authentication.",
type: "error"
@@ -39,7 +39,7 @@ const attemptLogin = async ({
const telemetry = new Telemetry().getInstance();
if (loginMode === LoginMode.ServerSide) {
console.log("attempting login with server side");
console.log("Attempting login with server side...");
const data = await loginV3({
email,
password,
@@ -47,7 +47,7 @@ const attemptLogin = async ({
captchaToken
}).catch((err) => {
if (axios.isAxiosError(err) && err.response?.status === 400) {
if (err.response.data.error === "LegacyEncryptionScheme") {
if (err.response?.data?.error === "LegacyEncryptionScheme") {
createNotification({
text: "Failed to login without SRP, attempting to authenticate with legacy SRP authentication.",
type: "error"
@@ -1,6 +1,3 @@
/* eslint-disable no-nested-ternary */
/* eslint-disable @typescript-eslint/no-unused-vars */
import { useState } from "react";
import { Helmet } from "react-helmet";
import { faXmark } from "@fortawesome/free-solid-svg-icons";