Archived
14 lines
352 B
TypeScript
14 lines
352 B
TypeScript
import { invoke } from "@tauri-apps/api/core";
|
|
|
|
export type SAuthMuatanMasuk = {
|
|
"id-klien": string;
|
|
};
|
|
|
|
export async function masuk(muatan: SAuthMuatanMasuk): Promise<null> {
|
|
return await invoke<null>("plugin:auth|masuk", { payload: muatan });
|
|
}
|
|
|
|
export async function keluar(): Promise<null> {
|
|
return await invoke<null>("plugin:auth|masuk");
|
|
}
|