mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 20:27:23 +00:00
Fix invalid jwt
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user