Properly sign out to remove session (#1059)

This commit is contained in:
Alexander Zinchuk 2021-05-03 15:04:37 +03:00
parent a34d7fcd22
commit cb55bd37cc

View File

@ -91,6 +91,7 @@ export async function init(sessionId: string, _onUpdate: OnApiUpdate) {
}
export async function destroy() {
await invokeRequest(new GramJs.auth.LogOut());
await client.destroy();
}