mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-11-03 23:42:26 -06:00 
			
		
		
		
	* add oidc config * inching forward with oidc idp * lil webfingy fix * bit more progress * further oidc * oidc now working * document dex config * replace broken images * add additional credits * tiny doc update * update * add oidc config * inching forward with oidc idp * bit more progress * further oidc * oidc now working * document dex config * replace broken images * add additional credits * tiny doc update * update * document * docs + comments
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			330 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			330 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package auth
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/gin-contrib/sessions"
 | 
						|
)
 | 
						|
 | 
						|
func (m *Module) clearSession(s sessions.Session) {
 | 
						|
	s.Clear()
 | 
						|
 | 
						|
	// 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)
 | 
						|
	}
 | 
						|
}
 |