Join Discord
Powered by
Hey! Is there a testing strategy with hapi server ...
# support-questions
s
Sasha_Gr
12/08/2021, 2:38 PM
Hey! Is there a testing strategy with hapi server injection (I am testing scope of user for different routes) and supertokens? I am using sessionManagement. Do I have to copy sAccessToken, sRefreshToken, sIdRefreshToken from
Copy code
const res = await server.inject({ method: 'POST', url: '/login', payload: loginData, });
or there is a way to do it with sessionManagement on each injection?
Previous
Next