J
J
Javarast Skriptovich2019-06-11 14:37:18
PostgreSQL
Javarast Skriptovich, 2019-06-11 14:37:18

How to deal with refresh token?

Before deleting tags, "expert", read the question, at least.. Previously
, I already googled, if I didn’t find anything intelligible.

  1. What to put in this token?
  2. Is it correct if I send it to the client in a cookie with the HTTP-Only flag?
  3. How to store on the server? (DB: PostgreSQL)
    • Create a separate table or can I store a token in the user's line right away?
    • What type of field do you need?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2019-06-11
@M4mkin_pr0ger

Take a look here (About tokens, JSON Web Tokens (JWT), authentication and authorization. Token-Based Authentication)
I advise you to look into the comments, especially here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question