Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

embed our login firebase flow into the application #8574

Open
linear bot opened this issue May 15, 2024 · 2 comments
Open

embed our login firebase flow into the application #8574

linear bot opened this issue May 15, 2024 · 2 comments

Comments

@linear
Copy link

linear bot commented May 15, 2024

  • when i authenticate from my email, it opens a new tab
  • the email itself looks very sad
  • replace firebase emails with app.highlight.io urls?
  • update firebase email styling
Copy link
Author

linear bot commented May 15, 2024

Copy link

greptile-apps bot commented May 15, 2024

To embed the login Firebase flow into the application and improve the email template, follow these steps:

  1. Embed Login Flow:

    • In frontend/src/pages/Auth/SignIn.tsx, modify the signIn function to handle the authentication within the same tab.
    const handleAuth = useCallback(async () => {
      try {
        const userCredential = await signIn(formStore.email, formStore.password);
        // Handle successful sign-in
      } catch (error) {
        handleAuthError(error);
      }
    }, [formStore.email, formStore.password]);
  2. Improve Email Template:

    • Locate the email template in the react-email-templates directory.
    • Modify the template to include a more appealing design. For example, update the HTML and CSS to include a header, footer, and better styling.
    <html>
    <head>
      <style>
        .email-container { font-family: Arial, sans-serif; padding: 20px; }
        .header { background-color: #f8f9fa; padding: 10px; text-align: center; }
        .footer { background-color: #f8f9fa; padding: 10px; text-align: center; }
      </style>
    </head>
    <body>
      <div class=
    
    

References

/frontend/src/pages/Auth/SignIn.tsx
/frontend/src/util/auth.tsx
/frontend/src/pages/Auth/ResetPassword.tsx
/frontend/src/pages/Auth/SignUp.tsx
/frontend/src/pages/Auth/VerifyEmail.tsx
/frontend/src/pages/Auth/MultiFactor.tsx

Ask Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants