Handle missing SECRET in auth flow
This commit is contained in:
1 parent
07e25a3cf3
commit
eb67f251d8
4 files changed
+43
-7
No files matched your search
@@ -45,10 +45,6 @@ func main() {
|
||||
os.Exit(1)
|
||||
}
|
||||
internalServiceSecret := strings.TrimSpace(os.Getenv("SECRET"))
|
||||
if internalServiceSecret == "" {
|
||||
fmt.Fprintln(os.Stderr, "SECRET environment variable is required")
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
|
||||
Reference in new issue
Block a user