Browse Source

Update note in docs

pull/14407/head
Yurii Motov 7 months ago
parent
commit
f42161cd19
  1. 4
      docs/en/docs/advanced/security/oauth2-scopes.md

4
docs/en/docs/advanced/security/oauth2-scopes.md

@ -110,9 +110,9 @@ You can use `Security` to declare dependencies (just like `Depends`), but `Secur
/// note
Before version 0.121.4, the name of this parameter was `scopes`.
Before version 0.122.X, the name of this parameter was `scopes`.
Since FastAPI 0.121.4, the `scopes` parameter has been deprecated in favor of `oauth_scopes`
In FastAPI 0.122.X, the `scopes` parameter was deprecated in favor of `oauth_scopes`
to avoid confusing it with the `scope` parameter, which is used to specify when the exit code
of dependencies with `yield` should run.

Loading…
Cancel
Save