secure jwt

This commit is contained in:
2024-10-02 11:42:33 -05:00
parent 57b5308ca9
commit 61b03070b4
11 changed files with 60 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ const (
resetNKodeTokenExp = 5 * time.Minute
)
var secret = []byte("your-secret-key")
var secret = GetJwtSecret("./secrets.json")
func NewAuthenticationTokens(username string, customerId CustomerId) (AuthenticationTokens, error) {
accessClaims := NewAccessClaim(username, customerId)