Replies: 1 comment 2 replies
-
Interesting - if you have a valid auth token from yahoo, you should be able to use the native oauth provider through here I think, and I think the Github sign in provider might be the best example - it should be...pretty close to how you do it ? It is going to require code here though - a new javascript-level provider and then logic to use it (implemented in the modular directory - the non-modular APIs are deprecated and may be ignored). Then adding recognition of the provider in the various native switch statements that load the specific native provider based on the javascript-level provider, so it loads the Yahoo one in the native firebase library provider example https://github.com/invertase/react-native-firebase/blob/main/packages/auth/lib/providers/GithubAuthProvider.js switch in android code (it's really just "add the import for the firebase provider, add an entry in switch statement for it" I think switch in ios code I wouldn't be intimidated by this at all vs successfully getting an auth token from yahoo. I always find that stuff to be pretty hard but while I can't guarantee it I think adding the Yahoo provider at the javascript layer then the appropriate switch entries in native code is...I hope easy |
Beta Was this translation helpful? Give feedback.
-
Hey guys,
Is there any example of adding Yahoo sign as social login option?
I couldn't find a way to accordingly use
signInWithPopup
. And thereact-native-app-auth
also doesn't have it in the tested providers list.I managed to build Yahoo authentication using their API and got the access token, but now I'm stuck building an appropriate
credential
for thesignInWithCredential
. I can probably usereact-native-app-auth
instead of my API, but then not sure how to use the result with rn-firebase.Thanks in advance! 🙏
Beta Was this translation helpful? Give feedback.
All reactions