Cannot login in webview (tauri) #14
-
I'm trying vue3-google-signin in vue3 using tauri as a backend, but this does not work. The browser windows for authentication is opened in the embedded browser and that is disallowed by google policies, so I get an error message as in the attached screenshot. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
This is not a problem with this library. It seems a problem with tauri's browser API. AFAIK it uses a native web view to build the app. This native web view might be outdated from google's perspective. The best way to handle this is to use redirect flow by setting This is how VSCode authenticates with GitHub also |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for the hint. Just a question: is |
Beta Was this translation helpful? Give feedback.
-
If I use |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot, awaiting :) |
Beta Was this translation helpful? Give feedback.
-
Tracking here #15 |
Beta Was this translation helpful? Give feedback.
This is not a problem with this library.
It seems a problem with tauri's browser API. AFAIK it uses a native web view to build the app. This native web view might be outdated from google's perspective.
The best way to handle this is to use redirect flow by setting
ux_mode
toredirect
and opening up the system browser to handle the authentication flow. After that, you might want to register some handler with the system to open up Tauri app and pass the obtained token. In electron, this is done using a protocol.Im not sure what to be used with Tauri.
This is how VSCode authenticates with GitHub also