[v4.1] ioc.extend doesn't work


#1

hooks.after.providersRegistered(() => {
ioc.extend(‘Adonis/Src/Auth’, ‘LucidJwt’, function () {
return LucidJwtSerializer;
}, ‘serializer’)
})

It doesn’t run extend method of node_modules/@adonisjs/auth/src/Auth/Manager.js


#2

I found a problem:
After this change https://github.com/poppinss/adonis-fold/commit/f8b1a7ee99e6c16c02b956ba8a8121171b418855
I need to use hooks.before.providersRegistered