We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85513a3 commit dfbbd70Copy full SHA for dfbbd70
source/lib/api.js
@@ -41,9 +41,9 @@ export async function getParsedUrl(endpoint, params) {
41
export async function getHeaders() {
42
const {token} = await optionsStorage.getAll();
43
44
- /// if (!(/[a-z\d]{40}/.test(token))) {
45
- // throw new Error('missing token');
46
- // }
+ if (!token) {
+ throw new Error('missing token');
+ }
47
48
return {
49
/* eslint-disable quote-props */
0 commit comments