Skip to content

Commit 30c316e

Browse files
committed
fix message error websocket token not found
1 parent 1307b95 commit 30c316e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastapi_jwt_auth/auth_jwt.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ def verify_jwt_in_request(
608608
if token_from == 'headers':
609609
raise MissingTokenError(status_code=401,message="Missing {} Header".format(self._header_name))
610610
if token_from == 'websocket':
611-
raise MissingTokenError(status_code=1008,message="Missing token from Query or Path")
611+
raise MissingTokenError(status_code=1008,message="Missing {} token from Query or Path".format(type_token))
612612

613613
# verify jwt
614614
issuer = self._decode_issuer if type_token == 'access' else None

0 commit comments

Comments
 (0)