jamesjmeyer210 / simple-auth

0 stars 0 forks source link

Refresh Tokens Ought to Be Encrypted #30

Open jamesjmeyer210 opened 9 months ago

jamesjmeyer210 commented 9 months ago

Currently, refresh tokens are hashed and in order to decode them, they their content has to be compared to their associated JWT. This tightly couples refresh tokens to JWTs. Instead, they should be encrypted, so they can be authenticated and inspected without a JWT.