supertokens-node
supertokens-node copied to clipboard
Create a specific wrapper for AdonisJs framework similar to how created for other Nodejs frameworks
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

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

What happens

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
BaseResponseandBaseRequestinterfaces similar to how it's done for expressJS here - An implementation of the
middlewareand theerrorHandlersimilar to how it's done for express here/ - An implementation of the
verifySessionmiddleware similar to express here. - Export the implementation via the framework module here.