Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option accessTokenField not visible in TypeScript #96

Open
Onheiron opened this issue Jul 27, 2020 · 1 comment
Open

Option accessTokenField not visible in TypeScript #96

Onheiron opened this issue Jul 27, 2020 · 1 comment

Comments

@Onheiron
Copy link

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.

@ghaiklor
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants