supertokens-core
supertokens-core copied to clipboard
Using supertokens sessionManagement with server injections for testing purposes
🚀 Feature
A testing strategy with server injections (for instance, with hapi)
Implementation details
A way to test scope of an auth user for different routes and using supertokens with sessionManagement while making server injections.
There should be a solution not to copy and set manually sAccessToken, sRefreshToken, sIdRefreshToken from
const res = await server.inject({
method: 'POST',
url: '/login',
payload: loginData,
});