File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ export class Communicator {
194194 }
195195
196196 private _getDataHeaders ( usesAuth : MaybeAuthenticated ) : DataHeaders {
197- if ( this . token === undefined && ! ! usesAuth )
197+ if ( this . token === undefined && usesAuth === true )
198198 throw new Error ( 'There is no token available. Did you forget to initalize vaultifier?' )
199199
200200 const headers : DataHeaders = {
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ export class Vaultifier {
146146 if ( this . info )
147147 return this . info ;
148148
149- const { data } = await this . communicator . get ( this . urls . info , true ) ;
149+ const { data } = await this . communicator . get ( this . urls . info , 'optional' ) ;
150150
151151 return this . info = data ;
152152 }
You can’t perform that action at this time.
0 commit comments