Skip to content

Commit

Permalink
fix(enterprise): also validate env tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
eysi09 authored and thsig committed Jan 18, 2021
1 parent 8e558e1 commit 540d061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/enterprise/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class EnterpriseApi {
}
this.enterpriseDomain = enterpriseDomain
const authToken = await this.readAuthToken()
if (authToken && !gardenEnv.GARDEN_AUTH_TOKEN && commandAllowed) {
if (authToken && commandAllowed) {
this.log.debug({ msg: `Refreshing auth token and starting refresh interval.` })
const tokenIsValid = await this.checkClientAuthToken(this.log)
if (!tokenIsValid) {
Expand Down

0 comments on commit 540d061

Please sign in to comment.