mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
Fix invalid jwt
This commit is contained in:
@@ -15,7 +15,7 @@ var (
|
||||
func init() {
|
||||
secretFilePath := GetStoragePath() + "/jwt_secret.key"
|
||||
secret, err := os.ReadFile(secretFilePath)
|
||||
if err != nil {
|
||||
if err == nil {
|
||||
key = secret
|
||||
} else {
|
||||
// Initialize the key with a random value
|
||||
|
Reference in New Issue
Block a user