Skip to content

Authenticating with GitHub #58

@alizahid

Description

@alizahid

Here's my config

{
  serviceConfiguration: {
    authorizationEndpoint: 'https://github.com/login/oauth/authorize',
    tokenEndpoint: 'https://github.com/login/oauth/access_token'
  },
  clientId: '',
  clientSecret: '',
  redirectUrl: 'github://oauth',
  scopes: ['gist']
}

When I call authorize, the GitHub login page opens, and once I click Authorize, it comes back to the app, and throws the following error

The operation couldn’t be completed. (org.openid.appauth.general error -7.)

<unknown>
    NativeModules.js:80:32
MessageQueue.__invokeCallback
    MessageQueue.js:400:4
<unknown>
    MessageQueue.js:139:11
MessageQueue.__guardSafe
    MessageQueue.js:316:6
MessageQueue.invokeCallbackAndReturnFlushedQueue
    MessageQueue.js:138:9
<unknown>
    debuggerWorker.js:72:58

What does that error mean? Doesn't give me much to go on.

Is it a config issue? Or something to do with redirectUrl?

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