Open eliotovele opened 1 year ago
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:
BaseResponse
and BaseRequest
interfaces similar to how it's done for expressJS heremiddleware
and the errorHandler
similar to how it's done for express here/verifySession
middleware similar to express here.
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