Answers for "add expiry to jwt extended token"

1

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
Posted by: Guest on June-25-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language