def list_identity_tokens(): email = get_jwt_identity() return jsonify(get_stored_tokens(email)), 200
def list_identity_tokens(): username = get_jwt_identity() return jsonify(get_stored_tokens(username)), 200
def list_identity_tokens(identity): return jsonify(get_stored_tokens(identity)), 200
def list_tokens(): # TODO you should put some extra protection on this, so a user can only # view their tokens, or some extra privillage roles so an admin can # view everyones token return jsonify(get_stored_tokens()), 200