Skip to content

Commit

Permalink
refactor: remove unused field in sessionCookie
Browse files Browse the repository at this point in the history
  • Loading branch information
clambin committed Apr 20, 2024
1 parent be00f0b commit ea02ad1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ func (s *Server) authCallbackHandler(l *slog.Logger) http.HandlerFunc {
sc := sessionCookie{
Email: user,
Expiry: time.Now().Add(s.Config.Expiry),
Domain: domain,
}
s.sessionCookieHandler.saveCookie(sc)

Expand Down
1 change: 0 additions & 1 deletion internal/server/session-cookie.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ var (
type sessionCookie struct {
Email string
Expiry time.Time
Domain string
}

func (c *sessionCookie) expired() bool {
Expand Down

0 comments on commit ea02ad1

Please # to comment.