Refactor
This commit is contained in:
@@ -40,7 +40,7 @@ def get_by_token(
|
||||
)
|
||||
|
||||
auth_type, token = authorization.split(" ")
|
||||
if auth_type != "Bearer":
|
||||
if auth_type != "Token":
|
||||
raise HTTPException(
|
||||
detail="Invalid token type provided",
|
||||
status_code=400,
|
||||
|
||||
Reference in New Issue
Block a user