Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Schwartz committed Oct 29, 2024
1 parent 45ee1d8 commit 05e6f5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions assets/js/firebaseAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ async function signUp(email, password) {
console.log("Response from server:", data);

// Step 5: Handle the backend response
if (data.success && data.authToken) {
console.log('Sign-up and reCAPTCHA verification successful');
if (data.success && data.jwtToken) {
document.cookie = `authToken=${data.jwtToken}; max-age=3600; path=/; domain=.languapps.com; secure; samesite=none;`;
console.log("JWT token saved to cookie");
// Do something on success, like updating the UI or redirecting
transitionModalStep('step1', 'step2'); // Example: transitioning to the next step in the UI
} else {
Expand Down

0 comments on commit 05e6f5d

Please sign in to comment.