from flask_jwt_extended import JWTManager
from flask import jsonify
from hotel.blacklist import BLACKLIST as blacklist


def init_app(app):
    jwt = JWTManager(app)

    @jwt.token_in_blacklist_loader
    def verifica_blacklist(token):
        return token["jti"] in blacklist

    @jwt.revoked_token_loader
    def token_de_acesso_invalidade():
        return jsonify({"message": "You Have been logged out."}), 401

3791c150aab2e66357afc6e0f8e4fc3ee483125e
<mask token>

<mask token>


def init_app(app):
    jwt = JWTManager(app)

    @jwt.token_in_blacklist_loader
    def verifica_blacklist(token):
        return token['jti'] in blacklist

    @jwt.revoked_token_loader
    def token_de_acesso_invalidade():
        return jsonify({'message': 'You Have been logged out.'}), 401

from flask_jwt_extended import JWTManager
from flask import jsonify
from hotel.blacklist import BLACKLIST as blacklist


def init_app(app):
    jwt = JWTManager(app)

    @jwt.token_in_blacklist_loader
    def verifica_blacklist(token):
        return token['jti'] in blacklist

    @jwt.revoked_token_loader
    def token_de_acesso_invalidade():
        return jsonify({'message': 'You Have been logged out.'}), 401

from flask_jwt_extended import JWTManager
from flask import jsonify
from hotel.blacklist import BLACKLIST as blacklist


def init_app(app):
    jwt = JWTManager(app)

    @jwt.token_in_blacklist_loader
    def verifica_blacklist(token):
        return token["jti"] in blacklist

    @jwt.revoked_token_loader
    def token_de_acesso_invalidade():
        return jsonify({"message": "You Have been logged out."}), 401
