tauri-plugin-oauth-session 0.1.0

Tauri plugin that drives OAuth flows through ASWebAuthenticationSession on iOS and Chrome Custom Tabs on Android.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use tauri::{AppHandle, Runtime, command};

use crate::{AuthenticateOptions, AuthenticateResponse, OAuthSessionExt, Result};

#[command]
pub(crate) async fn authenticate<R: Runtime>(
    app: AppHandle<R>,
    options: AuthenticateOptions,
) -> Result<AuthenticateResponse> {
    app.oauth_session().authenticate(options).await
}