John Costa 61e9258538 feat: saveToken plugin for app groups on iOS
This will allow the share extension to access the Bearer token to send
images to the backend.
2025-05-01 18:20:26 +01:00

13 lines
278 B
TypeScript

import { invoke } from "@tauri-apps/api/core";
export async function saveToken(token: string) {
return await invoke<{ token?: string }>(
"plugin:ios-shared-token|saveToken",
{
payload: {
token,
},
},
);
}