krypton-org / krypton-auth

Express authentication middleware, using GraphQL and JSON Web Tokens.
https://krypton-org.github.io/krypton-auth
MIT License
9 stars 0 forks source link

Impossible to log-out with Krypton Web client #56

Closed jrebecchi closed 4 years ago

jrebecchi commented 4 years ago

In order to log-out, a Krypton Web client can remove its authentication token. However, it can't remove its refreshToken as it is inside an httpOnly cookie. Thus, we can still refresh the authentication token and stay even if the one locally stored has been deleted.

We should provide a mutation removing the refreshToken of the client and the related session in the DB.