S
S
SampleDev2020-07-06 10:12:21
OAuth
SampleDev, 2020-07-06 10:12:21

Where is the best place to store tokens in an OAuth 2 approach?

The user is authenticated on the side of the OAuth server. Where is the best place to store received tokens after authentication? If for example to store in session, then for what time? Or if you store it in a table with users, but then after re-authentication from another client, the old (possibly still valid) tokens may disappear.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Lesnykh, 2020-07-10
@Aliance

What prevents to store in the table with communication one-to-many?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question