FastAPI - Authentication and Security
Examine the following FastAPI code snippet. What is the main issue preventing the protected route from working correctly?
```python
from fastapi import FastAPI, Depends
from fastapi.security import OAuth2PasswordBearer
app = FastAPI()
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
@app.get("/secure")
async def secure_route(token: str = Depends(oauth2_scheme)):
return {"token": token}
```
