The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Basic Server Setup for JWT Authentication

Basic Server Setup for JWT Authentication

1:44
Creating the basic node server to serve up random users via API endpoints.
Watch this lesson now
Avatar
egghead.io

Creating the basic node server to serve up random users via API endpoints.

Avatar
Jon

How did you get the code highlighting in your JSON output?

In reply to egghead.io
Avatar
Kevo

I found that the 'case' has changed to lowercase on faker.Helpers and faker.Image.

The code as presented did not work for me until I changed it to:

var user = faker.helpers.userCard();
user.avatar = faker.image.avatar();

Avatar
Pavel

var user = faker.helpers.userCard();
user.avatar = faker.image.avatar();

Yeah, that helps! I think that needs to be mentioned somewhere in lesson

In reply to Kevo
Avatar
Aron Rodrigues

What editor are you using?

Avatar
Kent C.

In this video I'm using Webstorm, but I use Atom these days: https://github.com/kentcdodds/ama/issues/113

In reply to Aron Rodrigues
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?