The JWT secret key is defined on line 24 in the handler.go file, this key can be set to anything(you can make it more secured by generating a long and strong random string).You can generate a secretkey with the below code:
import (
"crypto/rand"
"encoding/base64"
"fmt"
)
func generateSecretKey(length int) (string, error) {
// Create a byte slice to hold the random bytes
key := make([]byte, length)
// Read random bytes from the crypto/rand package
_, err := rand.Read(key)
if err != nil {
return "", err
}
// Encode the bytes to a base64 string
secretKey := base64.URLEncoding.EncodeToString(key)
return secretKey, nil
}
Things that are yet to be done: