[FastAPI] JWT Auth Exception(예외처리) 종류


[FastAPI] JWT Auth Exception(예외처리) 종류

JWT Auth Exception(예외처리) 종류 함수 설명 AuthJWTException 모든 fastapi_jwt_auth 오류가 확장되는 경우를 제외한 기준 InvalidHeaderError Header 또는 JWT 헤더 정보를 가져오는 동안 오류 발생 JWTDecodeError JWT 디코딩 오류 발생 CSRFError CSRF 시도시 오류 발생 MissingTokenError 토큰이 헤더에 없을때 발생 RevokedTokenError 만료된 토큰이 액세스하려고 할 때 발생 AccessTokenRequired 만료된 Access Token이 액세스하려고 할 때 발생 (jwt_required, jwt_optional, fresh_subt_required) RefreshTokenRequired 만료된 Refresh Token이 액세스하려고 할 때 발생 (jwt_sublic_required) FreshTokenRequired 만료되지 않은 Refresh Token이 유효하지 않을때...


#accesstokenrequired #revokedtokenerror #refreshtokenrequired #python #missingtokenerror #jwtdecodeerror #jwtauth #jwt #invalidheadererror #freshtokenrequired #fastapi #exception #csrferror #authjwtexception #auth #예외처리

원문링크 : [FastAPI] JWT Auth Exception(예외처리) 종류