Electron Desktop Expo OAuth2 Login - react-native

I am building an app using Expo/React-Native for multiple platforms using OAuth2 as AuthProvider.
So far, successfully logging in on android devices, web browsers (Chrome, Edge), iOS devices.
But unfortunately, I have an issue completing logging in on electron/desktop app.
I am directed to OAuth2 server (using promptAsync from Expo Api/AuthSession)
, and successfully logging in, but not being redirected into my desktop app. Once the credentials are successfully entered on the popup dialog, the login popup dialog should redirect back to the app so I can use ‘code’ to get to access_token.
Sample project here.
How do you expo AuthSession.useAuthRequest to complete login from electron?

Related

React Native: Cognito federated auth issue on Android TV

AWS Cognito Federated sign in with Google setup correctly and it works perfectly on Android devices (phones, tablets). But on Android TV Web Browsers can't redirect to custom url scheme (web browsers don't understand that the app should be opened). The error says "can't open scheme myapp://oauth/?iod=..." with the error code Net::ERR_UNKNOWN_URL_SCHEME.
React Native version is 0.66, with not the latest aws-amplify, but the issue mainly related to the behavior that browser doesn't open the app with custom url scheme.
Does anybody encountered such an issue and if yes, then what solution could be here?
Appreciate your help.
I've tried to use redirectSignIn url as App link instead of custom url scheme, but that didn't work (when you open app link from another app android opens proper app, but if redirecting/opening within the browser, then it redirects to the web page).

Authenticate web app via Spotify app instead of browser

I have a web app that is for Spotify users. To authenticate Spotify it currently takes the user to https://spotify.com/en/login?... as described in the Spotify docs. It works fine but it opens Safari instead of the Spotify app. This is an issue because a user may not know their password and then abandon the onboarding flow.
Since the user will be on their phone when accessing the web app, I would prefer to open the Spotify app in order for the user to grant us access. Songkick is able to do it but they do it from an iOS app so I'm not sure if it's possible to do from a web app on mobile to Spotify iOS app.
Also, I am building on Bubble.io which is a no-code builder. I am able to open the Spotify app directly from my web app by using https://open.spotify.com/artist/{artist_id} but that does not seem to work for authenticating.

Preventing users to get 403 disallowed_useragent Google error in react-native app

I've developed a react-native app which uses Auth0 to authenticate users.
I am getting a 403 disallowed_useragent error when some users try to authenticate using Google from my react-native app, using webAuth. As I searched, this is related to the browser app installed in the user device.
I can reproduce this issue using an Android 11 emulator disabling the Chrome browser, so the OS uses the WebView Browser Tester. If I let Chrome browser enabled, everything works OK.
So my question is: Is there a way to check if the browser installed in the user device supports Google Auth? So I can tell the user to update/install his browser if necessary.
I am using the official SDK react-native-auth0 v2.9.0 and react-native v0.66.0

Firebase auth Redirect to Facebook app instead of website for login on mobile

Is it possible configure my firebase project so that if a user is on mobile and they need to log in, they are redirected to the facebook mobile app instead of the facebook website in their browser?. I thought iOS would automatically intercept the link but it just takes you to the facebook site. Users with the app installed might not already be logged in through their browser since they are used to using the app and i'd like to avoid the extra login step for them

How to enable iOS browser to login with facebook from web page (not app)?

I have a web site, that uses facebook to login.
I would like iOS user of safari, to be able to login into this site. You understand i'm NOT talking about a native iOS app..... just a web site visit.
Currently, user can't login from iOS safari, as they can from any desktop environement.
Either login link is inactive, or there is an error message instead of the login popup.
So what should I implement on website to have facebook login work on iOS browser ?