#Open URL in Default Browser from Tauri Application
12 messages · Page 1 of 1 (latest)
i guess you're looking for this https://tauri.app/v1/api/js/shell/#open
Worked like a charm, Thank you
Ah, thank so I don't need the open crate to open an image with the default app
can I return an auth access token after the browser opens and the user authenticates?
you can use this :
import { open } from "@tauri-apps/api/shell";
export const openlink = async (link: string) => {
await open(link);
};
and how to return the access-token?
@strong niche Do you intend to implement login authentication functionality such as "login with Google or Facebook, etc."? Is that correct?
I try with microsoft login for reading and storing a folder and file in onedrive. next is gdrive and in the end a webdav implementation for anyone that prefers it
@strong niche ok to do that you want to use MicrosoftLogin from Microsoft Graph SDK for JavaScript
yes but there is an issue, with webview popup or with a express server at localhost:3000 I cannot get the access token back to my app to actually run some API
the only thing I can do is open either redirect or popup or express server and the webview/browser logins but thats it I cant use the access token in my app
I am currently trying to use Updating git repository tauri-plugin-oauth