Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Guys,
I am integrating JWT Authentication into my web app. I have successfully obtained a token, and when I attempt to log in using JWT session, I receive a status code of '200'. However, when I try to fetch the CSRF token, it doesn't work and throws a '401 Unauthorized' error. Can anyone clarify this doubt?
Check if session cookies are set after the login/jwt-session call, maybe you have 3rd-party-cookies blocked on your browser.
Hi Markbhai
A 401 Error in this case is due to you not being authorised to make that csrf-token fetch request. If you are doing this in the front-end they should be present but check as @pperdigo suggested. If they are missing you could set the cookies in the subsequent call and then Qlik will think you're authorised and you should get a 200 or 204
Hope this helps