mirror of
https://github.com/readest/readest.git
synced 2026-04-29 03:50:52 +00:00
refactor: rename plugin safari-auth to native-bridge (#749)
* fix: layout tweaks for mobile * refactor: rename plugin safari-auth to native-bridge
This commit is contained in:
parent
f90177713a
commit
a72c8f2391
46 changed files with 145 additions and 144 deletions
|
|
@ -0,0 +1,13 @@
|
|||
use tauri::{command, AppHandle, Runtime};
|
||||
|
||||
use crate::models::*;
|
||||
use crate::NativeBridgeExt;
|
||||
use crate::Result;
|
||||
|
||||
#[command]
|
||||
pub(crate) async fn auth_with_safari<R: Runtime>(
|
||||
app: AppHandle<R>,
|
||||
payload: SafariAuthRequest,
|
||||
) -> Result<SafariAuthResponse> {
|
||||
app.native_bridge().auth_with_safari(payload)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue