See: https://oauth2-server.readthedocs.io/en/latest/misc/migrating-v2-to-v3.html#migrating-from-2-x-to-3-x Table, that compares oauth2-server 2.x to oauth2-server 3.x is broken.