|
import os
|
|
from dotenv import load_dotenv
|
|
load_dotenv(override=True)
|
|
|
|
class Helper():
|
|
def __init__(self):
|
|
self.gateway_key = os.getenv("GATEWAY_KEY")
|
|
def checkValidUser(self, request):
|
|
if not self.gateway_key == request.headers.get('Gateway-Key'):
|
|
return False
|
|
else:
|
|
return True
|
|
|