This will allow the share extension to access the Bearer token to send images to the backend.
13 lines
278 B
TypeScript
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,
|
|
},
|
|
},
|
|
);
|
|
}
|