3

I'm making a simple file converter API in Node.js and I'm looking to avoid abuse in requests. So I'm looking for a way to use JWT without userModel, login etc.

But I can't thing something online.

Thank you

Splinteer
  • 1,126
  • 4
  • 13
  • 28
  • Without username/password and login, what will be the difference between valid user and guest? Will you send valid user something offline? – shaochuancs Sep 14 '17 at 15:07

1 Answers1

4

we don't need a user or login to create JWT, we can generate a token with any kind of data. Simple just generate a token then pass it to the client after that on file convert request verify the token.

I found similar topic that might help you click here

Riyaz Shaikh
  • 141
  • 9