fix(custom_validate.py): working jwt custom validate

This commit is contained in:
Krrish Dholakia 2025-02-17 17:54:18 -08:00
parent 53d67a9106
commit 0b2a453cb1

View file

@ -1,2 +1,5 @@
def my_custom_validate(token: str) -> bool:
return False
from typing import Literal
def my_custom_validate(token: str) -> Literal[True]:
raise Exception("Custom validate failed")