S
S
Shane Matte2017-04-02 16:05:18
PHP
Shane Matte, 2017-04-02 16:05:18

How does jwt generate a token on the server?

Hello. I want to understand how jwt works. If you make authorization, without jwt. Those. when registering, we immediately generate a token and save it for the user. After authorization, if everything is OK, we give this token to the user. And save to the same localstorage. What is the difference between this method and jwt? And how you can do authorization in a mobile application is written in react native. We need to save the session in the database, let's save a token with a unique device id?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2017-04-02
@Sanasol

JWT on google.
It does not need to be stored, only validated.
This is the essence of it contains data for its own identification.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question