Question · Python course · Module 6: Async and FastAPI

OAuth2PasswordBearer

What does OAuth2PasswordBearer do in FastAPI?

Answer options

  • Handles token extraction from the Authorization header
  • Hashes passwords
  • Creates login forms
  • Generates random passwords

You can check the correct answer by solving this task in the CodeWorlds game.