HR-ATS-Portal/backend/forget_password/permissions.py

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)]