We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
// EmailLoginHandler handles user login with email and password func EmailLoginHandler(firebaseAuth *auth.Client) gin.HandlerFunc { return func(c *gin.Context) { var req EmailLoginRequest if err := c.ShouldBindJSON(&req); err != nil { utils.RespondWithError(c, http.StatusBadRequest, "Invalid request") return } // Authenticate user with email and password token, err := firebaseAuth.SignInWithEmailAndPassword(context.Background(), req.Email, req.Password) if err != nil { utils.RespondWithError(c, http.StatusUnauthorized, "Invalid email or password") return } c.JSON(http.StatusOK, gin.H{ "message": "Login successful", "token": token, }) } }
But SignInWithEmailAndPassword() is method is not available
The text was updated successfully, but these errors were encountered:
I found a few problems with this issue:
Sorry, something went wrong.
No branches or pull requests
how to login using email and password using golang sdk
[REQUIRED] : Want something similar to this
Method for signinwithemailandpassword is not available:
But SignInWithEmailAndPassword() is method is not available
The text was updated successfully, but these errors were encountered: