[Logout] Fix wrong endpoint
This commit is contained in:
parent
033e068169
commit
646dfcf807
|
@ -254,7 +254,7 @@ class Client {
|
||||||
/// including all persistent data from the store.
|
/// including all persistent data from the store.
|
||||||
Future<void> logout() async {
|
Future<void> logout() async {
|
||||||
final dynamic resp = await connection.jsonRequest(
|
final dynamic resp = await connection.jsonRequest(
|
||||||
type: HTTPType.POST, action: "/client/r0/logout/all");
|
type: HTTPType.POST, action: "/client/r0/logout");
|
||||||
if (resp is ErrorResponse) connection.onError.add(resp);
|
if (resp is ErrorResponse) connection.onError.add(resp);
|
||||||
|
|
||||||
await connection.clear();
|
await connection.clear();
|
||||||
|
|
Loading…
Reference in New Issue