Skip to content

Commit 749d610

Browse files
committed
Fixed minor auth issues
1 parent 60f06f4 commit 749d610

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vaultifier/src/communicator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 = {

vaultifier/src/vaulitfier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)