Start here. This is the direct spoken answer to practice first.
Overview
Separates bearer-token extraction and OpenAPI description from token validation, user lookup, and authorization.
OAuth2PasswordBearer describes a bearer security scheme, reads the Authorization header, requires the Bearer format, and returns the token string. If the header is missing or malformed, it can produce a 401. It does not validate the token signature, issuer, audience, expiration, or claims. A later dependency must validate the credential, load the current user, and enforce account status.