supertokens next13
# support-questions
is supertokens next.js v13 app directory compatible yet? (specifically has the
package been updated to reflect this)
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
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
object which conforms with the
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.