feathersjs / feathers

The API and real-time application framework
https://feathersjs.com
MIT License
15.02k stars 745 forks source link

Getting Cannot read property 'response' of undefined using authentication-oauth for facebook #3157

Open shkshubhamdev opened 1 year ago

shkshubhamdev commented 1 year ago

Steps to reproduce

I'm using @feathersjs/authentication-oauth for Oauth with Facebook.

Right now, when I'm doing the Facebook Oauth in the server (which is running in multiple PODS), I'm getting the error Cannot read property 'response' of undefined from the pkg.

import { OAuthStrategy } from '@feathersjs/authentication-oauth'

Pkg Version:

    "@feathersjs/authentication": "4.5.11",
    "@feathersjs/authentication-local": "4.5.11",
    "@feathersjs/authentication-oauth": "4.5.11",
    "@feathersjs/authentication-oauth2": "1.3.1",
    "@feathersjs/configuration": "4.5.11",

Expected behavior

When I do log in with Facebook it should give me the access token and the code should go to getProfile function.

Actual behavior

When I do log in with Facebook it gives the error.

System configuration

Running in Kubernetes with multi pods.

Module versions (especially the part that's not working):

import { OAuthStrategy } from '@feathersjs/authentication-oauth'

NodeJS version: Node 12

Operating System: Linux

Browser Version: Version 112.0.5615.49 (Official Build) (x86_64)