12 lines
340 B
Python
12 lines
340 B
Python
"""Bearer scheme for password-reset tokens (type=reset JWT)."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Annotated
|
|
|
|
from fastapi import Depends
|
|
from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer
|
|
|
|
reset_scheme = HTTPBearer()
|
|
ResetCredentials = Annotated[HTTPAuthorizationCredentials, Depends(reset_scheme)]
|