Initial commit

This commit is contained in:
tomeros
2021-03-24 15:11:34 +02:00
commit 7d68b93238
60 changed files with 1847 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
from flask_httpauth import HTTPTokenAuth
from app.server.db.models import AuthToken
auth = HTTPTokenAuth(scheme='Bearer')
@auth.verify_token
def verify_token(token):
"""Used to verify user's Token"""
return AuthToken.query.filter_by(auth_token=token).first()