Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

fix: increase expire date to 24 hours (#521)

Guilherme Oenningfd117a37fe0b
diff --git a/app/handlers/oauth.go b/app/handlers/oauth.go
index 6bc47420c..d882f42c8 100644
--- a/app/handlers/oauth.go
+++ b/app/handlers/oauth.go
@@ -212,7 +212,7 @@ func SignInByOAuth() web.HandlerFunc {
provider := c.Param("provider")
identifier := rand.String(16)
- c.AddCookie(web.CookieOAuthIdentifier, identifier, time.Now().Add(2*time.Hour))
+ c.AddCookie(web.CookieOAuthIdentifier, identifier, time.Now().Add(24*time.Hour))
authURL, err := c.Services().OAuth.GetAuthURL(provider, c.QueryParam("redirect"), identifier)
if err != nil {