We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5cff880 + cef7e4a commit 7f0015eCopy full SHA for 7f0015e
docs/tutorial/authentication.md
@@ -23,7 +23,7 @@ class AuthBearer(HttpBearer):
23
class MyController:
24
@route.get("/bearer", auth=AuthBearer())
25
def bearer(self):
26
- return {"token": self.request.auth}
+ return {"token": self.context.request.auth}
27
28
```
29
@@ -73,7 +73,7 @@ class AuthBearer(AsyncHttpBearer):
73
74
75
async def bearer(self):
76
77
78
79
In example above, we changed `HttpBearer` to `AsyncHttpBearer` and changed bearer to `async` endpoint.
0 commit comments