SyedAzlanzar commited on
Commit
f785c0a
·
1 Parent(s): d98e0a6

@fix : unauth error

Browse files
Files changed (1) hide show
  1. app/auth/auth.py +0 -2
app/auth/auth.py CHANGED
@@ -7,9 +7,7 @@ security = HTTPBearer()
7
  def verify_token(credentials: HTTPAuthorizationCredentials = Depends(security)):
8
  JWT_SECRET = os.getenv("JWT_SECRET_KEY")
9
  ALGORITHM = os.getenv("ALGORITHM")
10
- print(JWT_SECRET, ALGORITHM)
11
  token = credentials.credentials
12
- print(token)
13
  try:
14
  payload = jwt.decode(token, JWT_SECRET, algorithms=[ALGORITHM])
15
  return payload
 
7
  def verify_token(credentials: HTTPAuthorizationCredentials = Depends(security)):
8
  JWT_SECRET = os.getenv("JWT_SECRET_KEY")
9
  ALGORITHM = os.getenv("ALGORITHM")
 
10
  token = credentials.credentials
 
11
  try:
12
  payload = jwt.decode(token, JWT_SECRET, algorithms=[ALGORITHM])
13
  return payload