Properly sign out to remove session (#1059)
This commit is contained in:
parent
a34d7fcd22
commit
cb55bd37cc
@ -91,6 +91,7 @@ export async function init(sessionId: string, _onUpdate: OnApiUpdate) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function destroy() {
|
export async function destroy() {
|
||||||
|
await invokeRequest(new GramJs.auth.LogOut());
|
||||||
await client.destroy();
|
await client.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user