You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The backend needs to return a HttpOnly cookie to handle authentication via a secure way so that the JWT access and refresh tokens are not accessible via XSS. The client then sends the cookie with every subsequent request to the backend, automatically authenticating the requests as long as the JWT is not expired.
The text was updated successfully, but these errors were encountered:
Token pair creation works. How will the token be sent in the subsequent requests? In the form of a header? Need this so I can add it to the security middleware
Due to the nature of HttpOnly cookies, the client is not able to extract the JWT token. Therefore, the token will be sent as a cookie with every request.
Cookie currently sent via HTTP header Authorization. Will look into it once the domains for FE + BE are cleared. Domains needed for Cookie context: domain so we can set it to Lax if they share the same domain differing by subdomain.
The backend needs to return a HttpOnly cookie to handle authentication via a secure way so that the JWT access and refresh tokens are not accessible via XSS. The client then sends the cookie with every subsequent request to the backend, automatically authenticating the requests as long as the JWT is not expired.
The text was updated successfully, but these errors were encountered: