the token is not being validated to return information
The /login route gives me the token, but when I go to the /userinfo route and send the token it gives me an invalid token def auth(): cursor = conexao.cursor() if verifica(): token = jwt.encode({ ‘nome’: request.json[‘username’], ‘exp’: str(datetime.now(timezone.utc) + timedelta(seconds=120)) }, app.config[‘SECRET_KEY’], algorithm=”HS256″) cursor.close() return jsonify({‘token’: token}) else: cursor.close() return make_response(‘Credenciais inválidas’, 403) def […]