This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | from flask import Flask, request, jsonify | |
| from flask_jwt_extended import create_access_token, JWTManager | |
| import datetime | |
| import hashlib | |
| jwt = JWTManager(app) # initialize JWTManager | |
| app.config['JWT_SECRET_KEY'] = 'Your_Secret_Key' | |
| app.config['JWT_ACCESS_TOKEN_EXPIRES'] = datetime.timedelta(days=1) # define the life span of the token | |
| @app.route("/api/v1/login", methods=["post"]) |