fix: Refactor to use filesystem storage instead of cookies

This commit is contained in:
Danny Bessems 2024-03-11 15:20:08 +11:00
parent d946069f6a
commit aceb53efe9
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ var config = oauth2.Config{
Scopes: []string{"email", "openid", "profile", "user.read"},
}
var sessionStore = sessions.NewCookieStore([]byte("xDDBjhYwyndZty3exGNq2ahE8wHRCR4DfdCJCSoWXAYncfWw2UQDH63QcJ9CkrGx"))
var sessionStore = sessions.NewFilesystemStore("", []byte("xDDBjhYwyndZty3exGNq2ahE8wHRCR4DfdCJCSoWXAYncfWw2UQDH63QcJ9CkrGx"))
func init() {
// Register the oauth2.Token type with gob