How to integrate Github login with firebase auth in both the web and mobile? #29000
Unanswered
KittichoteKamalapirat
asked this question in
Archived: Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue
I created a project in Firebase which consists of 3 apps, the
web
(NextJS),ios
app (React Native Expo), andandroid
(React Native Expo). I added Github as a provider in Firebase Auth and also added a new OAuth app in Github. However, when adding a new OAuth app in Github, I have to provide an Authorization Callback URL which is the problem here. For the web, I have to fill inhttps://myapp.firebaseapp.com/__/auth/handler
but for the mobile app, I have to fill inmyapp://
(myapp
is the scheme field in expo's app.json) which is a deeplink to my mobile app. However, I can only provide 1 redirect url. How should I get away with this limitation?Basically,
myapp://
as the authorization callback URL on Github. But the web would break.https://myapp.firebaseapp.com/__/auth/handler
as the authorization callback URL on Github. But the mobile app would break.Github OAuth Setting
Firebase's Github Provider Config
Beta Was this translation helpful? Give feedback.
All reactions