Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expected either accessToken, id_token or authCode in payload when trying to use Facebook Authentication v10 #3109

Closed
kevin-lii opened this issue Aug 5, 2020 · 9 comments
Assignees

Comments

@kevin-lii
Copy link

kevin-lii commented Aug 5, 2020

Goals

Facebook Authentication using v10 of Realm

Expected Results

To successfully login to my realm app using Facebook Authentication

Actual Results

I got an error with the message expected either accessToken, id_token or authCode in payload

Steps to Reproduce

Use react-native-fbsdk to login and get accesstoken.
Pass in access token to Credentials.facebook() to get credential.
Pass in credential to myRealmAppInstance.logIn()

Version of Realm and Tooling

  • Realm JS SDK Version: 10.0.0-beta.9
  • Node or React Native: 0.62.2
@johnsaigle
Copy link

I'm getting the same issue when using the Node SDK. I've checked that the accessToken received from Facebook is correct and is a string, however the login fails with the error message in the title.

@ilkerc
Copy link

ilkerc commented Aug 17, 2020

+1

@RealmBot
Copy link
Collaborator

➤ Lyubomir Blagoev commented:

This is fixed and will be part of the next release

@ilkerc
Copy link

ilkerc commented Aug 18, 2020

@blagoev can you reference the commit/pr of the fix?

@blagoev
Copy link
Contributor

blagoev commented Aug 18, 2020

Sure, this one realm/realm-object-store@9c80160

@seyedasfar
Copy link

any fix?

@RealmBot
Copy link
Collaborator

RealmBot commented Sep 9, 2020

➤ Lyubomir Blagoev commented:

This should be fixed in Realm JS v10.beta-10 and up.

@jerryjfwang
Copy link

Still getting the same error message on 10.0.0-beta.11

@seyedasfar
Copy link

I'm using "realm": "^10.0.0-beta.12" but still the same error

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants