From 2e795af7c44e3aabdf4ac3e8df419bc871cc2a3d Mon Sep 17 00:00:00 2001 From: garrettladley Date: Tue, 11 Jun 2024 18:28:12 -0400 Subject: [PATCH] done --- backend/integrations/oauth/soth/sothic/sothic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/integrations/oauth/soth/sothic/sothic.go b/backend/integrations/oauth/soth/sothic/sothic.go index 060cfe18..1cb34090 100644 --- a/backend/integrations/oauth/soth/sothic/sothic.go +++ b/backend/integrations/oauth/soth/sothic/sothic.go @@ -30,7 +30,7 @@ const ( ProviderParamKey key = iota ) -// Session can/should be set by applications using gothic. The default is a cookie store. +// Session can/should be set by applications using sothic. var ( SessionStore *session.Store encrypter func(string) (string, error) @@ -93,7 +93,7 @@ func SetState(c *fiber.Ctx) string { nonceBytes := make([]byte, 64) _, err := io.ReadFull(rand.Reader, nonceBytes) if err != nil { - panic("gothic: source of randomness unavailable: " + err.Error()) + panic(fmt.Sprintf("sothic: source of randomness unavailable: %v", err.Error())) } return base64.URLEncoding.EncodeToString(nonceBytes) }