move cookies to session + config.

This commit is contained in:
Miroslav Šedivý
2021-03-17 14:09:10 +01:00
parent d06a5a2ac7
commit 4abe0a5dba
4 changed files with 66 additions and 34 deletions

View File

@ -50,5 +50,7 @@ type SessionManager interface {
ImplicitHosting() bool
CookieSetToken(w http.ResponseWriter, token string)
CookieClearToken(w http.ResponseWriter)
Authenticate(r *http.Request) (Session, error)
}