()
| 107 | } |
| 108 | |
| 109 | removeCachedToken() { |
| 110 | const cache = readTokenCache(); |
| 111 | if (cache[this.openid]) { |
| 112 | delete cache[this.openid]; |
| 113 | writeTokenCache(cache); |
| 114 | } |
| 115 | this.accessToken = ""; |
| 116 | this.authorization = ""; |
| 117 | } |
| 118 | |
| 119 | applyToken(data = {}) { |
| 120 | this.accessToken = data.accessToken || data.access_token || ""; |
no test coverage detected