diff --git a/internal/handlers/handlers.go b/internal/handlers/handlers.go index d4b0308..7e15ca3 100644 --- a/internal/handlers/handlers.go +++ b/internal/handlers/handlers.go @@ -653,6 +653,9 @@ func (h *Handlers) OauthCallbackHandler(c *gin.Context) { return } + // Clean up redirect cookie + c.SetCookie("tinyauth-redirect", "", -1, "/", "", h.Config.CookieSecure, true) + // Redirect to continue with the redirect URI c.Redirect(http.StatusPermanentRedirect, fmt.Sprintf("%s/continue?%s", h.Config.AppURL, queries.Encode())) }