I have a situation where I am logging in using a username and password using Auth0. I would like to be able to use the access token I get without a browser (testing uses supertest). I tried using JWT as an alternative strategy alongside this one but having other issues.
Would it be possible to add the Authorization header as a way to log in for testing?
It is unclear to me how adding an Authorization header would help with testing, specifically in relation to this strategy. Could you provide more information?
I have a situation where I am logging in using a username and password using Auth0. I would like to be able to use the access token I get without a browser (testing uses supertest). I tried using JWT as an alternative strategy alongside this one but having other issues.
Would it be possible to add the
Authorization
header as a way to log in for testing?