()
| 35 | } |
| 36 | |
| 37 | private userRequest() { |
| 38 | return helper.apiCall('GET', 'https://kitsu.app/api/edge/users?filter[self]=true').then(res => { |
| 39 | con.log(res); |
| 40 | if (typeof res.data[0] === 'undefined') { |
| 41 | throw new NotAutenticatedError('Not Authenticated'); |
| 42 | } |
| 43 | return res.data[0]; |
| 44 | }); |
| 45 | } |
| 46 | |
| 47 | deauth() { |
| 48 | return api.settings.set('kitsuToken', '').then(() => api.storage.set('kitsuUserId', '')); |
no test coverage detected