Skip to content

Commit

Permalink
Fix token to be assigned in header
Browse files Browse the repository at this point in the history
  • Loading branch information
vmesel committed May 28, 2024
1 parent ce1ce51 commit edbb1c9
Show file tree
Hide file tree
Showing 4 changed files with 1,249 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fastsupabased_acl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
key: str = os.environ.get("SUPABASE_KEY")
supabase: Client = create_client(url, key)

async def token_auth(token: str):
async def token_auth(token: Annotated[str, Header()]):
if not token:
raise HTTPException(status_code=400, detail="Token header required")

Expand Down
Loading

0 comments on commit edbb1c9

Please sign in to comment.