Hey, could someone from the team update the Next.js (app directory enabled) boilerplate repo to the ...
a
Hey, could someone from the team update the Next.js (app directory enabled) boilerplate repo to the latest version?
r
hey @alpha_ - which repo are you talking about again?
ah i see
we don't support the app directory structure yet
a
The one that's been created when we choose next.js in the supertokens cli
r
but we are working on it
a
Okay so when can we expect? Any ETA?
r
a few weeks perhaps
a
Cool, then I think our team could halt the migration process for a week
r
oh i mean it's a few weeks, and not a week. So maybe 2-3 weeks
a
Oops, is there any temporary work around to make it work with app structure??
r
you will have to use the pages structure for the supertokens backend middleware. In order to use the verifySession function in the app directory, you could pass in a mock response object (which conforms to the BaseRequest structure), and the use that to actually write the token updates to the actual response.
a
Cool will try implementing this, thanks for the support 😉
7 Views