()
| 133 | } |
| 134 | |
| 135 | removeCachedToken() { |
| 136 | const cache = readTokenCache(); |
| 137 | delete cache[this.cacheKey()]; |
| 138 | writeTokenCache(cache); |
| 139 | this.token = ""; |
| 140 | } |
| 141 | |
| 142 | async gql(query, variables = {}, token = this.token, allowFail = false) { |
| 143 | const body = { query, variables }; |
no test coverage detected