diff --git a/router/middleware.go b/router/middleware.go index 64c8626..758f5fc 100644 --- a/router/middleware.go +++ b/router/middleware.go @@ -73,7 +73,7 @@ func (h *Handlers) IsAdminUserMiddleware(next echo.HandlerFunc) echo.HandlerFunc } func (h *Handlers) getRequestUserIDFromCookie(c echo.Context) (uuid.UUID, error) { - sess, err := session.Get("emoine_session", c) + sess, err := session.Get("emoine_session_v2", c) if err != nil { return uuid.Nil, err } diff --git a/router/oauth2.go b/router/oauth2.go index dbae266..3cdc116 100644 --- a/router/oauth2.go +++ b/router/oauth2.go @@ -17,7 +17,7 @@ import ( // GetGeneratedCode GET /oauth2/generate/code func (h *Handlers) GetGeneratedCode(c echo.Context) error { - sess, err := session.Get("emoine_session", c) + sess, err := session.Get("emoine_session_v2", c) if err != nil { log.Printf("error: %v", err) return echo.ErrInternalServerError @@ -44,7 +44,7 @@ func (h *Handlers) GetGeneratedCode(c echo.Context) error { // CallbackHandler GET /api/callback func (h *Handlers) CallbackHandler(c echo.Context) error { - sess, err := session.Get("emoine_session", c) + sess, err := session.Get("emoine_session_v2", c) if err != nil { log.Printf("error: %v", err) return echo.ErrInternalServerError