sergiodxa / remix-auth-github

A GitHubStrategy for Remix Auth, based on the OAuth2Strategy
https://sergiodxa.github.io/remix-auth-github/
MIT License
75 stars 17 forks source link

github strategy not working with remix-auth-socials #32

Closed jacqualine-ramgel closed 1 year ago

jacqualine-ramgel commented 1 year ago

Followed the steps in below link and getting the below mentioned errors https://github.com/TheRealFlyingCoder/remix-auth-socials

Error: Missing access token.
    at GitHubStrategy2.failure
    at GitHubStrategy2.authenticate
    at async loader
    at async callRouteLoaderRR
    at async callLoaderOrAction
    at async Promise.all (index 0)
    at async loadRouteData
    at async queryImpl
    at async Object.query
    at async handleDocumentRequestRR 

API logs show the below entries for remix dev

[mf:inf] GET /login 200 OK (9ms)
[mf:inf] POST /auth/github 204 No Content (6ms)                                                                                                                           
[mf:inf] GET /auth/github/callback 302 Found (684ms)
[mf:inf] GET /login 200 OK (7ms)

Redirect happens back from github oauth page but after that

authenticate(
    params.provider,
    request,
    {
      successRedirect: "/account",
      failureRedirect: "/login",
    }
  )

function detects sends to failureRedirect.

jacqualine-ramgel commented 1 year ago

@sergiodxa Please help.