Example #1
0
 def post(current_user, self):
     auth_header = request.headers.get('Authorization')
     return Auth.logout(data=auth_header)
Example #2
0
 def post(self):
     # get auth token
     auth_header = request.headers.get('Authorization')
     return Auth.logout_user(data=auth_header)
Example #3
0
 def post(self):
     return Auth.login(request)
Example #4
0
 def post(self):
     data = request.get_json()
     return Auth.login_user(data=data)