Fix invalid jwt

This commit is contained in:
2025-05-30 20:15:21 +08:00
parent 1d3aee3b70
commit 1063f3240d

View File

@@ -15,7 +15,7 @@ var (
func init() { func init() {
secretFilePath := GetStoragePath() + "/jwt_secret.key" secretFilePath := GetStoragePath() + "/jwt_secret.key"
secret, err := os.ReadFile(secretFilePath) secret, err := os.ReadFile(secretFilePath)
if err != nil { if err == nil {
key = secret key = secret
} else { } else {
// Initialize the key with a random value // Initialize the key with a random value