Skip to content

Cannot login in webview (tauri) #14

Answered by kasvith
vincenzoml asked this question in Q&A
Discussion options

You must be logged in to vote

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 to redirect 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

Replies: 5 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@kasvith
Comment options

Answer selected by vincenzoml
Comment options

You must be logged in to vote
1 reply
@kasvith
Comment options

Comment options

You must be logged in to vote
1 reply
@kasvith
Comment options

Comment options

You must be logged in to vote
2 replies
@vincenzoml
Comment options

@kasvith
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #13 on September 17, 2022 09:26.