mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-17 22:33:00 -06:00
oidc now working
This commit is contained in:
parent
81206d93f3
commit
20bf141512
10 changed files with 211 additions and 79 deletions
|
|
@ -2,17 +2,14 @@ package auth
|
|||
|
||||
import (
|
||||
"github.com/gin-contrib/sessions"
|
||||
"github.com/superseriousbusiness/gotosocial/internal/router"
|
||||
)
|
||||
|
||||
func (m *Module) clearSession(s sessions.Session) {
|
||||
for _, key := range sessionKeys {
|
||||
s.Delete(key)
|
||||
}
|
||||
s.Clear()
|
||||
|
||||
newOptions := router.SessionOptions(m.config)
|
||||
newOptions.MaxAge = -1 // instruct browser to delete cookie immediately
|
||||
s.Options(newOptions)
|
||||
// newOptions := router.SessionOptions(m.config)
|
||||
// newOptions.MaxAge = -1 // instruct browser to delete cookie immediately
|
||||
// s.Options(newOptions)
|
||||
|
||||
if err := s.Save(); err != nil {
|
||||
panic(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue