highlight / highlight

highlight.io: The open source, full-stack monitoring platform. Error monitoring, session replay, logging, distributed tracing, and more.
https://app.highlight.io
Other
7.17k stars 323 forks source link

embed our login firebase flow into the application #8574

Open linear[bot] opened 1 month ago

linear[bot] commented 1 month ago
linear[bot] commented 1 month ago

HIG-4658 embed our login firebase flow into the application

greptile-apps[bot] commented 1 month ago

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