cheungt6 / public

Public samples
GNU General Public License v3.0
43 stars 13 forks source link

Credential secret is always null/empty #1

Closed airowe closed 4 years ago

airowe commented 4 years ago

Nice implementation for react native firebase. However, I'm always seeing the credential.secret be null/empty. Is there something that needs to be done in Firebase console to get the secret when retrieving a credential from the various providers so that the secret is accessible?

cheungt6 commented 4 years ago

Have you gone under authentication -> sign in method and enabled the providers you are hoping to use?

airowe commented 4 years ago

Yep!

On Sat, Jun 20, 2020 at 2:56 PM cheungt6 notifications@github.com wrote:

Have you gone under authentication -> sign in method and enabled the providers you are hoping to use?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cheungt6/public/issues/1#issuecomment-647033263, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAM3TJTLK4HJGOZFHGQRDTRXUA55ANCNFSM4ODA3IQA .

-- Adam Rowe

cheungt6 commented 4 years ago

Do you have any code you can share? Quite difficult to diagnose without any more information

airowe commented 4 years ago

Apparently the issue was around importing AsyncStorage. Reading up on the docs, it looks like that component is exported by default now: https://react-native-community.github.io/async-storage/docs/usage so removing the curly braces got everything working correctly.

Thanks for the quick responses and again, a very nice solution here.