blog-social-signin-spa-jwt-server icon indicating copy to clipboard operation
blog-social-signin-spa-jwt-server copied to clipboard

Can't get it to work...

Open Sn3b opened this issue 8 years ago • 1 comments

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(…)"

Sn3b avatar Apr 14 '16 14:04 Sn3b

I had used the wrong name, you should replace request with superagent. I have updated the code. Thanks for noticing.

omichelsen avatar Apr 21 '16 16:04 omichelsen