1
0

fix: we use generated key

This commit is contained in:
オスカー、 2023-03-22 12:52:58 +00:00 committed by GitHub
parent 5d414ca049
commit ed3e763fdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
app.py
View File

@ -27,7 +27,7 @@ client = LinkedRolesOAuth2(
scopes=("identify", "role_connection_write"), scopes=("identify", "role_connection_write"),
state=os.getenv("COOKIE_SECRET") state=os.getenv("COOKIE_SECRET")
) )
fn = Fernet(os.getenv("COOKIE_SECRET")) fn = Fernet(os.getenv("ENCRYPT_KEY"))
def encrypt(text: str) -> str: def encrypt(text: str) -> str:
return fn.encrypt(text.encode()) return fn.encrypt(text.encode())