()
return jsonify(dict(access_token=token)), 200
Refresh access token
Refresh access token
Refresh access token
def refresh():
    """Refresh access token"""
    user_identity = APITokenAuth.get_jwt_identity()
    token = TokenAuth().create_access_token(identity=user_identity)
    return jsonify(dict(access_token=token)), 200
def refresh ( ) : user_identity = APITokenAuth . get_jwt_identity ( ) token = TokenAuth ( ) . create_access_token ( identity = user_identity ) return jsonify ( dict ( access_token = token ) ) , 200