Skip to content

Commit ccca47c

Browse files
committed
refactor: Remove unused validate method from JwtGuard class
1 parent 63347a2 commit ccca47c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎pyrannic/auth/guards/jwt_guard.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,6 @@ def decode(self, token: str) -> dict[str, Any]:
9696
except jwt.PyJWTError as e:
9797
raise self.unauthorized_exception(str(e)) from e
9898

99-
def validate(self, token: str, payload: dict[str, Any]) -> bool:
100-
return True
101-
10299
def unauthorized_exception(self, message: str) -> UnauthorizedException:
103100
# https://www.rfc-editor.org/info/rfc6750/#section-3.1
104101
header = {

0 commit comments

Comments
 (0)