()
| 209 | } |
| 210 | |
| 211 | static async logout() { |
| 212 | return await request(`${host}/api/accounts/auth/logout/`, { |
| 213 | auth: true, // Send JWT token so backend can identify the user |
| 214 | method: 'POST', |
| 215 | }); |
| 216 | } |
| 217 | |
| 218 | static async getChannels() { |
| 219 | try { |