We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 165193f commit 8155b0dCopy full SHA for 8155b0d
pydatastructs/graphs/graph.py
@@ -12,6 +12,12 @@ def rotate_secret_key():
12
while True:
13
os.environ["HMAC_SECRET_KEY"] = secrets.token_hax(32)
14
time.sleep(30 * 24 * 60 * 60)
15
+def get_secret_key():
16
+ """ Gets the HMAC secret key """
17
+ secret_key = os.getenv("HMAC_SECRET_KEY")
18
+ if secret_key is None:
19
+ raise RuntimeError("Secret key is missing!")
20
+ return secret_key.encode()
21
__all__ = [
22
'Graph'
23
]
0 commit comments