vyobukhov
04/20/2023, 1:22 PMrp
04/20/2023, 1:25 PMvyobukhov
04/20/2023, 1:25 PMrp
04/20/2023, 1:26 PMvyobukhov
04/20/2023, 1:26 PMrp
04/20/2023, 1:31 PMvyobukhov
04/20/2023, 1:33 PMrp
04/20/2023, 1:34 PMsetCookie
function, set the path you want if the key
is sAccessToken
.
Then whenever you call getSession / verifySession, you can pass your custom implementation of the base response to it instead of passing the ctx
directly.
For the middleware, you can make your own middleware (copy this code here: https://github.com/supertokens/supertokens-node/blob/master/lib/ts/framework/koa/framework.ts#L179), and then change the let response = new KoaResponse(ctx);
line to just wrap ctx with your custom KoaResponse
impl.vyobukhov
04/20/2023, 1:42 PMrp
04/20/2023, 1:43 PMvyobukhov
04/20/2023, 1:44 PMrp
04/20/2023, 1:44 PM