fix: env client secret

This commit is contained in:
Lakhan Samani
2022-03-07 12:23:45 +05:30
parent e61dc2f08a
commit 513b5d2948
4 changed files with 41 additions and 1 deletions

2
server/env/env.go vendored
View File

@@ -90,7 +90,7 @@ func InitAllEnv() error {
clientSecret := envData.StringEnv[constants.EnvKeyClientSecret]
// unique client id for each instance
if clientID == "" {
if clientSecret == "" {
clientSecret = uuid.New().String()
envData.StringEnv[constants.EnvKeyClientSecret] = clientSecret
}