passport-facebook-token icon indicating copy to clipboard operation
passport-facebook-token copied to clipboard

Option `accessTokenField` not visible in TypeScript

Open Onheiron opened this issue 5 years ago • 1 comments
trafficstars

I'm trying to use a custom field to pass the Facebook Access Token in the request body like this:

passport.use(
      'facebook',
      new FacebookTokenStrategy(
        {
          clientID: config.api.social.facebook.appId,
          clientSecret: config.api.social.facebook.appSecret,
          // HOW CAN I SPECIFY THE accessTokenField?
        },
        function (
          accessToken: string,
          refreshToken: string,
          profile: Profile,
          done: (error: any, user?: any, info?: any) => void
        ) {
          // TODO...
        }
      )
    );

But in the options I can't see any accessTokenField to tell the strategy where to find the token.

Onheiron avatar Jul 27 '20 09:07 Onheiron

What do you mean by not visible? It is unclear what the problem you have.

ghaiklor avatar Jul 28 '20 08:07 ghaiklor