You've already forked Promocode-API
mirror of
https://github.com/devitq/Promocode-API.git
synced 2026-05-22 23:17:10 +00:00
init: initialized project struct
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
from django.http import HttpRequest
|
||||
from ninja.security import HttpBearer
|
||||
|
||||
|
||||
class BearerAuth(HttpBearer):
|
||||
def authenticate(self, request: HttpRequest, token: str) -> str | None:
|
||||
if token == "will implement later":
|
||||
return token
|
||||
|
||||
return None
|
||||
Reference in New Issue
Block a user