feat: generate a unique id for the cookie names based on the domain

This commit is contained in:
Stavros
2025-05-22 22:21:29 +03:00
parent da7cebdfed
commit 7151832cc7
7 changed files with 58 additions and 23 deletions

View File

@@ -45,7 +45,7 @@ func (auth *Auth) GetSession(c *gin.Context) (*sessions.Session, error) {
}
// Get session
session, err := store.Get(c.Request, "tinyauth")
session, err := store.Get(c.Request, auth.Config.SessionCookieName)
if err != nil {
log.Error().Err(err).Msg("Failed to get session")
return nil, err