tauri-plugin-plauth-api
Version:
Tauri plugin for authentication (PLAUTH) supporting macOS and iOS platforms with ASWebAuthenticationSession
17 lines (14 loc) • 387 B
JavaScript
import { invoke } from '@tauri-apps/api/core';
async function ping(value) {
return await invoke('plugin:plauth|ping', {
payload: {
value,
},
}).then((r) => (r.value ? r.value : null));
}
async function authenticate(request) {
return await invoke('plugin:plauth|authenticate', {
payload: request,
});
}
export { authenticate, ping };