fix: we use generated key
This commit is contained in:
parent
5d414ca049
commit
ed3e763fdd
2
app.py
2
app.py
@ -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())
|
||||||
|
Reference in New Issue
Block a user