2019-09-28 17:04:51 -07:00
|
|
|
package auth
|
|
|
|
|
|
2020-07-08 18:59:37 -07:00
|
|
|
// import (
|
|
|
|
|
// "encoding/gob"
|
2019-09-28 17:04:51 -07:00
|
|
|
|
2020-07-08 18:59:37 -07:00
|
|
|
// "github.com/gorilla/sessions"
|
|
|
|
|
// )
|
2019-09-28 17:04:51 -07:00
|
|
|
|
2020-07-08 18:59:37 -07:00
|
|
|
// const SessionName = "auth-session"
|
2019-10-09 08:56:57 -07:00
|
|
|
|
2020-07-08 18:59:37 -07:00
|
|
|
// var (
|
|
|
|
|
// Store *sessions.FilesystemStore
|
|
|
|
|
// )
|
2019-09-28 17:04:51 -07:00
|
|
|
|
2020-07-08 18:59:37 -07:00
|
|
|
// func Init() error {
|
|
|
|
|
// Store = sessions.NewFilesystemStore("", []byte("something-very-secret"))
|
|
|
|
|
// gob.Register(User{})
|
|
|
|
|
// return nil
|
|
|
|
|
// }
|