passport-facebook-token
passport-facebook-token copied to clipboard
Option `accessTokenField` not visible in TypeScript
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.
What do you mean by not visible? It is unclear what the problem you have.