Access token, Refresh Token flow changed.
Change Log
- All routes which can be accessed by normal user has been moved to
/authbase route. So, now- Signup
- Verify
- Login
- Trust Device
- Renew
these all routes come under/authbase route.
- When logging in or renewing token,
accessTokenis now sent as a part of response bodyrefresh-tokenis sent as a HTTP only cookie, max age set at expiration of the token and path set to renew token path.- this is done so that when renew token request is sent browser automatically attaches the cookie to the request without the intervention of the client.
- the cookie is set to
http onlyso that client side javascript can not read it. - the cookie is set to
SameSite: Strictso that this token can not be passed to other sites.
Main Branch History
- Feature/refresh token in cookie by @opticSquid in #95
- Feature/dependency upgrades by @opticSquid in #96
- Fix/add same site by @opticSquid in #97
Full Changelog: v2.2.1...v2.3.2