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.
This commit is contained in:
2025-05-01 18:20:26 +01:00
parent c8d9ae7aff
commit 61e9258538
32 changed files with 857 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
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,
},
},
);
}