Deleted User
04/12/2023, 3:00 AMsupertokens-auth-react package been updated to reflect this)rp_st
04/12/2023, 5:23 AM"use client" directive on the frontend files to use SessionAuth.
For backend middleware, you will still need to use the pages directory.
For backend session verification, right now, there is no easy way to use the verifySession function in the app dir. If you want to use it in there, you will have to pass a mocked res object which conforms with the BaseResponse structure, and then relay the tokens set in that to the actual nextresponse object.
We are working on making changes to our sdk to support these in a better way.