Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
feat: bearer token authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
deepankarm committed Apr 28, 2023
1 parent 7fbfc42 commit 6360bb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ curl -X 'POST' \
---
### 🔐 Integrate API Authorization
### 🔐 Authorize your APIs
To add an extra layer of security, we can integrate any custom API authorization by adding a `auth` argument to the `serving` decorator.
Expand All @@ -438,7 +438,7 @@ async def talk(question: str, **kwargs) -> str:
return ...
```
##### 🤔 Gotchas about `auth` function
##### 🤔 Gotchas about the `auth` function
- Should accept only one argument `token`.
- Should return `True` if the request is authorized, otherwise it should return `False`.
Expand Down

0 comments on commit 6360bb6

Please sign in to comment.