예제 #1
0
 def identity(payload):
     userid = payload['identity']
     return User.find_by_id(userid)
예제 #2
0
 def getUser():
     userid = get_jwt_identity()
     return User.find_by_id(userid)