Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

bugfix: increase cookie time to 2 hours (#465)

Guilherme Oenning972b2e64fe3b
diff --git a/app/handlers/oauth.go b/app/handlers/oauth.go
index 944332845..ea79956f4 100644
--- a/app/handlers/oauth.go
+++ b/app/handlers/oauth.go
@@ -165,7 +165,7 @@ func SignInByOAuth() web.HandlerFunc {
provider := c.Param("provider")
identifier := uuid.NewV4().String()
- c.AddCookie(web.CookieOAuthIdentifier, identifier, time.Now().Add(5*time.Minute))
+ c.AddCookie(web.CookieOAuthIdentifier, identifier, time.Now().Add(2*time.Hour))
authURL, err := c.Services().OAuth.GetAuthURL(provider, c.QueryParam("redirect"), identifier)
if err != nil {