The auth middleware is not working and has runtime errors because of the wrong initialized phase order. We should initialize RouterGroups before Middleware because the Middleware needs a.switchableRouterGroup.
Also, the Tokens key in the config structure is wrong.
The auth middleware is not working and has runtime errors because of the wrong initialized phase order. We should initialize
RouterGroups
beforeMiddleware
because theMiddleware
needsa.switchableRouterGroup
.Also, the
Tokens
key in the config structure is wrong.