diff --git a/loginpass/_flask.py b/loginpass/_flask.py index 5f21742..d6be06a 100644 --- a/loginpass/_flask.py +++ b/loginpass/_flask.py @@ -80,9 +80,9 @@ def login(name): def register_to(oauth, backend_cls): - from authlib.integrations.flask_client import FlaskRemoteApp + from authlib.integrations.flask_client import FlaskOAuth2App - class RemoteApp(backend_cls, FlaskRemoteApp): + class RemoteApp(backend_cls, FlaskOAuth2App): OAUTH_APP_CONFIG = backend_cls.OAUTH_CONFIG oauth.register(RemoteApp.NAME, overwrite=True, client_cls=RemoteApp)