🪻 distributed transcription service thistle.dunkirk.sh

feat: redirect to classes after login

dunkirk.sh 20f7055c e175c4dc

verified
Changed files
+3
src
components
+3
src/components/auth.ts
···
this.closeModal();
await this.checkAuth();
window.dispatchEvent(new CustomEvent("auth-changed"));
+
window.location.href = "/classes";
} else {
const response = await fetch("/api/auth/login", {
method: "POST",
···
this.closeModal();
await this.checkAuth();
window.dispatchEvent(new CustomEvent("auth-changed"));
+
window.location.href = "/classes";
}
} catch (error) {
// Catch crypto.subtle errors and other exceptions
···
await this.checkAuth();
this.closeModal();
window.dispatchEvent(new CustomEvent("auth-changed"));
+
window.location.href = "/classes";
} finally {
this.isSubmitting = false;
}