You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working on polishing my frontend. Adjusted my TokenDashboardPage to keep its Token Rotation History panel user-scoped but in a client-side sense (still same localStorage setup, this feature is purely cosmetic and for demo purposes so won't be maping it to a user-scoped audit table, like you would in a production setting, because it's really besides the point). Thin frontend, thick backend (the latter is what's being showcased).
// Call backend for registration and, on success, navigate to the Login page (else display error):
61
69
setIsSubmitting(true);
62
70
constresult=awaitregisterUser(email,password);
63
71
64
-
// Adjust this check depending on how your API wrapper is implemented
65
72
if(result?.status==="registered"){
66
73
// NOTE:+TO-DO: When I have the time I want a pop-up box in the top-right or bottom-right corner that goes "You've successfully registered!" (disappears after).
67
74
navigate("/login");
@@ -124,6 +131,7 @@ export default function RegisterPage() {
0 commit comments