Used by host (backend) code to set headers on a response object. Sets both the auth JWT cookie
and the CSRF token cookie. The CSRF cookie is not HttpOnly so that frontend JavaScript can read
it and inject the value as a request header.
Parameters
userId: string|number
The id from your database of the user you're authenticating.
Used by host (backend) code to set headers on a response object. Sets both the auth JWT cookie and the CSRF token cookie. The CSRF cookie is not
HttpOnlyso that frontend JavaScript can read it and inject the value as a request header.