(oauth_header: "str" = Security(reusable_oauth2))
| 23 | |
| 24 | # Here we use string annotations to test them |
| 25 | def get_current_user(oauth_header: "str" = Security(reusable_oauth2)): |
| 26 | user = User(username=oauth_header) |
| 27 | return user |
| 28 | |
| 29 | |
| 30 | @app.post("/login") |