Describe the bug
When a custom AccessToken is used, the OAuth2ExtraTokenMiddleware raises an AttributeError: Manager isn't available; 'oauth2_provider.AccessToken' has been swapped for ...
To Reproduce
Use a custom OAUTH2_PROVIDER_ACCESS_TOKEN_MODEL and enable the oauth2_provider.middleware.OAuth2ExtraTokenMiddleware
Expected behavior
No error to be raised.
Version
Additional context
A simple change is proposed in #1380