How is my session protected?
Your session relies on short-lived signed tokens that are renewed automatically. The refresh token is single-use and stored in a cookie that scripts cannot access.
What is it about?
Once you are logged in, you are identified by a signed access token (ECDSA), valid for 5 minutes. It is renewed in the background using a refresh token:
- randomly generated and replaced each time it is used, with the previous one immediately revoked;
- stored in an HttpOnly cookie, inaccessible to scripts, and transmitted only over HTTPS;
- valid for one day at most.
The forms in your account and your customer area are also protected against cross-site request forgery.
What you gain
A smooth session, without constant re-logins, and tokens that quickly lose their value: an intercepted token expires within minutes, and a refresh token that has already been used is no longer of any use.
A concrete example
A consultant works all morning in her OnlyU space without having to log in again, while her tokens are quietly renewed every five minutes.