Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
minor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Christian Knuchel
minor
Commits
22881d6d
Commit
22881d6d
authored
Nov 15, 2019
by
Fence
🌈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jwt token was sent out as bytes casted to str insteadof a proper string
parent
fdc46e81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
minor/crypto.py
minor/crypto.py
+1
-1
No files found.
minor/crypto.py
View file @
22881d6d
...
...
@@ -55,4 +55,4 @@ def issue_token(email, secret):
payload
[
"exp"
]
=
datetime
.
utcnow
()
+
timedelta
(
minutes
=
30
)
# TODO maybe add jti?
token
=
jwt
.
encode
(
payload
,
secret
,
algorithm
=
'HS256'
)
return
str
(
token
)
return
token
.
decode
(
"utf-8"
)
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