From aceb53efe914ddc4ffd9c9ff3bad3917c138fd69 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Mon, 11 Mar 2024 15:20:08 +1100 Subject: [PATCH] fix: Refactor to use filesystem storage instead of cookies --- pkg/spamasaurusrex/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/spamasaurusrex/main.go b/pkg/spamasaurusrex/main.go index e1b7373..98a9abb 100644 --- a/pkg/spamasaurusrex/main.go +++ b/pkg/spamasaurusrex/main.go @@ -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