(username, password)
| 177 | } |
| 178 | |
| 179 | static async login(username, password) { |
| 180 | try { |
| 181 | const response = await request(`${host}/api/accounts/token/`, { |
| 182 | auth: false, |
| 183 | method: 'POST', |
| 184 | body: { username, password }, |
| 185 | }); |
| 186 | |
| 187 | return response; |
| 188 | } catch (e) { |
| 189 | errorNotification('Login failed', e); |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | static async refreshToken(refresh) { |
| 194 | try { |
no test coverage detected