I wrote an API that uses Passport and FacebookStrategy to login with a Facebook account. This login flow was working till today when suddenly FacebookStrategy stopped providing the profile object, weirdly providing accessToken. Here's what I coded:
Solved it! The callback function must have the 4 parameters (accessToken, refreshToken, profile and cb), not 3 as I was writing it on the code. Hope it helps someone! Peace!
I wrote an API that uses Passport and FacebookStrategy to login with a Facebook account. This login flow was working till today when suddenly FacebookStrategy stopped providing the profile object, weirdly providing accessToken. Here's what I coded:
I really don't know if I did something wrong. Any help is appreciated.
Thanks!