diff --git a/cmd/config.toml b/cmd/config.toml index 71bd617..b3f4545 100644 --- a/cmd/config.toml +++ b/cmd/config.toml @@ -1,6 +1,6 @@ [auth] -# JWT encoding key -key = "a key" +# JWT secret +secret = "a key" # Disable registration disabled = false diff --git a/internal/config/config.go b/internal/config/config.go index 2613f01..0b8a980 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -24,7 +24,7 @@ type Config struct { // Auth configuration type Auth struct { - Key string `toml:"key` + Secret string `toml:"secret"` Disabled bool `toml:"disabled"` }