V
V
Vladimir Grabko2016-06-04 01:14:19
go
Vladimir Grabko, 2016-06-04 01:14:19

How to synchronize data?

In my jwt, which group the user belongs to (user, banned, administrator, etc.) is stored. I can't figure out what to do when updating this data. After all, the token stores one thing, and another in the database.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Grabko, 2016-06-04
@VGrabko

I duplicated in a cookie. Every n minutes based on the token I check this data. If they have changed, then I generate a new token.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question