feat/db-init #3

Open
Nitro wants to merge 41 commits from feat/db-init into dev
Showing only changes of commit 70041fa58e - Show all commits
+2 -1
View File
@@ -1,7 +1,8 @@
import jwt
import os
from time import time
def generateKey(email, passwd):
key = os.getenv('KEY')
encoded = jwt.encode({email: passwd}, key, algorithm="HS256")
encoded = jwt.encode({email: passwd, 'iat': time()}, key, algorithm="HS256")
return encoded