#Firebase and facebook auth

1 messages · Page 1 of 1 (latest)

viscid bane
#
  const signInWithFacebook = () => {
    const provider = new FacebookAuthProvider();
    signInWithPopup(authentication, provider)
      .then((res) => {
        console.log('result: ', res);
      })
      .catch((err) => console.log(err));
  };```
and i use it on button onclick

Is this problem part of tauri or facebook?
silk wharf
rare tulip
#

Please use the OAuth plugin instead and open the OAuth page in the default browser.

rare tulip
#

Install the plugin by adding the following to your Cargo.toml file:
src-tauri/Cargo.toml

[dependencies]
tauri-plugin-oauth = { git = "https://github.com/FabianLars/tauri-plugin-oauth", branch = "main" }