(token: string)
| 249 | } |
| 250 | |
| 251 | function loginServerSession(token: string): Promise<ServerSessionStatus> { |
| 252 | return jsonRequest<ServerSessionStatus>('/session/login', { |
| 253 | method: 'POST', |
| 254 | body: { token } |
| 255 | }) |
| 256 | } |
| 257 | |
| 258 | function logoutServerSession(): Promise<ServerSessionStatus> { |
| 259 | return jsonRequest<ServerSessionStatus>('/session/logout', { |
nothing calls this directly
no test coverage detected