0e668e1993
Added function with is creating jvt tocken for user
8 lines
176 B
Python
8 lines
176 B
Python
import jwt
|
|
import os
|
|
|
|
def generateKey(email, passwd):
|
|
key = os.getenv('KEY')
|
|
encoded = jwt.encode({f"{email}": f"{passwd}"}, key, algorithm="HS256")
|
|
return encoded
|