supertokens-node icon indicating copy to clipboard operation
supertokens-node copied to clipboard

Create a specific wrapper for AdonisJs framework similar to how created for other Nodejs frameworks

Open eliotovele opened this issue 3 years ago • 1 comments

Is not possible to verify the session with AdonisJs even using the getSession() function, the only way to use super tokens with this framework is by using the JWT approach.

your-app/config/cors.ts image

your-app/app/Middleware/Your-Custom-Middleware.ts image

What happens image

eliotovele avatar Nov 29 '22 15:11 eliotovele

hey @eliotovele i had a look at this. Unfortunately this is not a priority for us.

That being said, you can contribute this into the SDK. You would need to create:

  • An implementation of BaseResponse and BaseRequest interfaces similar to how it's done for expressJS here
  • An implementation of the middleware and the errorHandler similar to how it's done for express here/
  • An implementation of the verifySession middleware similar to express here.
  • Export the implementation via the framework module here.

rishabhpoddar avatar Dec 01 '22 04:12 rishabhpoddar