mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
fix(custom_validate.py): working jwt custom validate
This commit is contained in:
parent
53d67a9106
commit
0b2a453cb1
1 changed files with 5 additions and 2 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue