Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add expiry to jwt extended token

@jwt_required
def create_dev_token():
    username = get_jwt_identity()
    expires = datetime.timedelta(days=365)
    token = create_access_token(username, expires_delta=expires)
    return jsonify({'token': token}), 201
 
PREVIOUS NEXT
Tagged: #add #expiry #jwt #extended #token
ADD COMMENT
Topic
Name
5+6 =