Skip to content
Snippets Groups Projects
Commit 8f17e465eba0 authored by Christophe de Vienne's avatar Christophe de Vienne
Browse files

--token-secret is now mandatory

parent 8fb2f8eb5f06
No related branches found
No related tags found
No related merge requests found
Pipeline #121129 failed
......@@ -36,7 +36,7 @@
//
//nolint:lll
type TokenOptions struct {
SecretOpt func(string) error `long:"token-secret" env:"AUTH_TOKEN_SECRET" ini-name:"secret" description:"hex HMAC256/AES256 secret for signing/verifying JWT & crypting (32 bytes)"`
SecretOpt func(string) error `long:"token-secret" env:"AUTH_TOKEN_SECRET" ini-name:"secret" required:"t" description:"hex HMAC256/AES256 secret for signing/verifying JWT & crypting (32 bytes)"`
Secret []byte `no-flag:"t"`
Expiration time.Duration `no-flag:"t"`
ExpirationOpt func(string) error `long:"token-expiration" ini-name:"expiration" required:"false" description:"Expiration time of the generated tokens" default:"5m"`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment