authlib / example-oauth2-server

Example for OAuth 2 Server for Authlib.
https://authlib.org/
684 stars 285 forks source link

before_first_request has been deprecated #95

Open jinmiaoluo opened 1 year ago

jinmiaoluo commented 1 year ago

When running flask run, an error will occur: AttributeError: 'Flask' object has no attribute 'before_first_request'.

workaround:

diff --git a/requirements.txt b/requirements.txt
index a9a0f2d..34f5e84 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,3 @@
-Flask
+Flask~=2.2.0
 Flask-SQLAlchemy
 Authlib