FastAPI - Authentication and Security
Identify the error in this FastAPI protected route code:
```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 = oauth2_scheme):
return {"token": token}
```
