Use authn.Cookie for SAML SSO

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-01-19 15:17:11 +04:00
parent ac65c05488
commit d92e893bfd
5 changed files with 18 additions and 16 deletions

View File

@@ -34,8 +34,8 @@ func (c *Cookie) Set(w http.ResponseWriter, session *coredata.Session) {
)
}
func (c *Cookie) Clear(w http.ResponseWriter, session *coredata.Session) {
securecookie.Clear(w, c.sessionCookieConfig(time.Until(session.ExpiredAt)))
func (c *Cookie) Clear(w http.ResponseWriter) {
securecookie.Clear(w, c.sessionCookieConfig(-1*time.Second))
}
func NewCookie(config *securecookie.Config) *Cookie {