Skip to content

Commit 4cb2618

Browse files
committed
Some example app comment clarifications
1 parent a17d7ae commit 4cb2618

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flask_jwt_extended/app.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,20 @@
3838
# We are going to be using a simple in memory blacklist for this example. In
3939
# production, you will likely prefer something like redis (it can work with
4040
# multiple threads and processes, and supports automatic removal of expired
41-
# tokens so the blacklist doesn't blow up). Check here for available options:
42-
# http://pythonhosted.org/simplekv/
41+
# tokens so the blacklist doesn't blow up). Check here for available storage
42+
# options: http://pythonhosted.org/simplekv/
4343
blacklist_store = simplekv.memory.DictStore()
4444
app.config['JWT_BLACKLIST_STORE'] = blacklist_store
4545

46-
# Only check the blacklist for refresh token. Available options are:
46+
# Which tokens to check against the blacklist. Default is 'refresh'. Options are:
4747
# 'all': Check blacklist for access and refresh tokens
4848
# 'refresh': Check blacklist only for refresh tokens
4949
app.config['JWT_BLACKLIST_TOKEN_CHECKS'] = 'refresh'
5050

5151
jwt = JWTManager(app)
5252

5353

54-
# Function to add custom claims to the JWT (optional).
54+
# Function to add your own data (claims) to the JWT (optional).
5555
@jwt.user_claims_loader
5656
def my_claims(identity):
5757
return {

0 commit comments

Comments
 (0)