supertokens next13
# support-questions
s
is supertokens next.js v13 app directory compatible yet? (specifically has the
supertokens-auth-react
package been updated to reflect this)
r
hey @semagraph - not yet. But you can add the
"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.