Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Commit 0253be0

Browse files
committed
Return null when there is no accessToken
1 parent 64a7822 commit 0253be0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class NetlifyAPI {
4242
}
4343

4444
get accessToken() {
45-
return (get(this, 'defaultHeaders.Authorization') || '').replace('Bearer ', '')
45+
return (get(this, 'defaultHeaders.Authorization') || '').replace('Bearer ', '') || null
4646
}
4747

4848
set accessToken(token) {

0 commit comments

Comments
 (0)