Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley committed Jun 11, 2024
1 parent e20c661 commit 2e795af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/integrations/oauth/soth/sothic/sothic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 2e795af

Please sign in to comment.