supertokens-core icon indicating copy to clipboard operation
supertokens-core copied to clipboard

Using supertokens sessionManagement with server injections for testing purposes

Open aleksgribko opened this issue 3 years ago • 0 comments

🚀 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,
    });

aleksgribko avatar Dec 08 '21 15:12 aleksgribko