UPDATE: idk
All checks were successful
Build and Release / release (push) Successful in 2m8s

This commit is contained in:
2026-04-04 23:01:03 +07:00
parent 9564ca566c
commit 081bfe1a32

View File

@@ -309,7 +309,7 @@ func (h *AuthController) GoogleLogin(c fiber.Ctx) error {
redirect := c.Query("redirect") redirect := c.Query("redirect")
if redirect == "" { if redirect == "" {
redirect = "https://localhost:3000" redirect = "http://localhost:3000"
} }
data := models.OAuthState{ data := models.OAuthState{
@@ -427,7 +427,7 @@ func (h *AuthController) GoogleCallback(c fiber.Ctx) error {
redirectURL := data.RedirectURL redirectURL := data.RedirectURL
if !allowed[redirectURL] { if !allowed[redirectURL] {
redirectURL = "https://localhost:3000" redirectURL = "http://localhost:3000"
} }
return c.Redirect().To(redirectURL) return c.Redirect().To(redirectURL)