Skip to content

Commit

Permalink
update login queries
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuagraber authored Mar 4, 2024
1 parent 5ae00de commit b43d372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/login_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def create_session_token(cursor, id, email):
"iat": datetime.datetime.utcnow(),
"sub": id,
}
session_token = jwt.encode(payload, os.getenv("secret_key"), algorithm="HS256")
session_token = jwt.encode(payload, os.getenv("SECRET_KEY"), algorithm="HS256")
cursor.execute(
f"insert into session_tokens (token, email, expiration_date) values ('{session_token}', '{email}', '{expiration}')"
)
Expand Down

0 comments on commit b43d372

Please sign in to comment.