DEV Community

Discussion on: How To Create A Fake REST API For Your Project With JSON Server

Collapse
 
moutafatin1 profile image
moutafatin1

There is a way to create a fake JWT to prototype the authentication?

Collapse
 
sreerajkarippala profile image
sreeraj

Nice article, #Back project may help you to setup api with JWT. #Back automatically convert app database table to API endpoint, please try at
github.com/WeAreKins/BackNode/rele...

Collapse
 
tiaeastwood profile image
Tia Eastwood

I'm pretty sure there will be but I haven't done that myself. It's something to investigate for sure!

Collapse
 
ecyrbe profile image
ecyrbe

Yes, it's an express server. You can add custom routes like any express server to generate a valid JWT for the connecting user. And add a JWT validation middleware to protect the other endpoints.