blog-social-signin-spa-jwt-server
blog-social-signin-spa-jwt-server copied to clipboard
Can't get it to work...
What I have done:
git clone https://github.com/omichelsen/blog-social-signin-spa-jwt-server npm install I've registered some test apps at facebook's and google's Created a redirect page identical to this one Added the client ID's to the code as well as redirect URI Created an empty DIV with id="profile" to render name and profile picture Started app with http-server
It seems to work to get the token from facebook or google, but I get an error when it gets to the authenticate function: "Uncaught (in promise) ReferenceError: request is not defined(…)"
I had used the wrong name, you should replace request
with superagent
. I have updated the code. Thanks for noticing.