Skip to content

Commit

Permalink
Fix auth token returned as bytes (#7842)
Browse files Browse the repository at this point in the history
  • Loading branch information
medariox authored Mar 15, 2020
1 parent 66583ba commit e6d4150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion medusa/server/api/v2/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _login(self, exp=86400):
'exp': time_now + int(exp),
'username': app.WEB_USERNAME,
'apiKey': app.API_KEY
}, app.ENCRYPTION_SECRET, algorithm='HS256')
}, app.ENCRYPTION_SECRET, algorithm='HS256').decode('utf-8')
})

def _failed_login(self, error=None):
Expand Down

0 comments on commit e6d4150

Please sign in to comment.