Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
4fceb404
"...targets/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "9686cb331133678827c1dde87c425b398f9c8f9c"
Commit
4fceb404
authored
Feb 01, 2024
by
Tim Farrell
Browse files
Call `jwt.decode` with the expected algorithms
parent
e15dbdc4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
backend/utils/utils.py
backend/utils/utils.py
+1
-1
No files found.
backend/utils/utils.py
View file @
4fceb404
...
...
@@ -48,7 +48,7 @@ def create_token(data: dict, expires_delta: Union[timedelta, None] = None) -> st
def
decode_token
(
token
:
str
)
->
Optional
[
dict
]:
try
:
decoded
=
jwt
.
decode
(
token
,
SESSION_SECRET
)
decoded
=
jwt
.
decode
(
token
,
SESSION_SECRET
,
algorithms
=
[
ALGORITHM
]
)
return
decoded
except
Exception
as
e
:
return
None
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment