V
V
Vitya Podpriklopolny2020-03-22 15:09:33
JSON Web Token
Vitya Podpriklopolny, 2020-03-22 15:09:33

Multiple sessions in jwt sql database?

I am making user authorization functionality. There is only one user in the system, but there can be several authorizations for this user from different devices. Is it correct to create a separate table for jwt tokens?
That is, with each request to the server, a search will take place in this token table, and if it finds it, then access is allowed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2020-03-22
@megamage

JWT is not used that way. Tokens do not need to be stored at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question