Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

674
Vistas
How to get firebase token and uid from OOBCODE?

We are sending firebase email verification link to user. After clicking on that, we have created custom page to verify the user.

All is working fine till now.

Now, after verify email, we are in logged out mode and we want to call the custom API with firebase ID and token.

We have OOBCODE in url, So can we get the firebase uid and token using OOBCODE?

Below is the code:

if(router.query.oobCode)
{
  firebase.auth().applyActionCode(router.query.oobCode)
  .then((res) => {
    setValidCode(true)
    setVerifiedCode(true)
  }, 
  error => 
  {
    setError(error.message)
    setValidCode(false)
    setVerifiedCode(true)
  });
}
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The applyActionCode() method only confirms that the email was successfully verified, nothing else. It just confirms that the verification email that was sent to the email address was opened, confirming that the email owner is the correct user. In particular, it doesn't log in the user to your app.

From there, it's up to you to implement the desired flow. You can redirect to a login page. You could also use the apiKey query string parameter that is present in the URL: it is the Firebase project's API key.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda