Skip to content

Usage with GitHub oauth #194

Closed
Closed
@tobiastimm

Description

@tobiastimm

Request for information

I've tried to create a login via GitHub. I've successfully authorised via the app, but when AppAuth is trying to read the token response the console is saying

Error: JSON error parsing token response: The data couldn’t be read because it isn’t in the correct format.
    at createErrorFromErrorData (NativeModules.js:146)
    at NativeModules.js:95
    at MessageQueue.__invokeCallback (MessageQueue.js:397)
    at MessageQueue.js:127
    at MessageQueue.__guard (MessageQueue.js:297)
    at MessageQueue.invokeCallbackAndReturnFlushedQueue (MessageQueue.js:126)
    at debuggerWorker.js:72

My config for GitHub is:

const config = {
  clientId: 'MY_ID',
  clientSecret: 'MY_SECRET,
  redirectUrl: 'gaiden://oauth',
  scopes: [
    'repo',
    'notifications',
    'user',
  ],
  serviceConfiguration: {
    authorizationEndpoint: 'https://github.com/login/oauth/authorize',
    tokenEndpoint: 'https://github.com/login/oauth/access_token',
    revocationEndpoint:
      'https://github.com/settings/connections/applications/MY_ID'
  }
}

Would appreciate any help 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions