1
0
mirror of https://git.sr.ht/~tsileo/microblog.pub synced 2025-06-05 21:59:23 +02:00

Add return type to hmac_sha256

This commit is contained in:
Kevin Wallace
2022-11-17 21:35:04 -08:00
committed by Thomas Sileo
parent 2151733e4f
commit a2254f2674

View File

@ -257,5 +257,5 @@ def verify_csrf_token(
return None
def hmac_sha256():
def hmac_sha256() -> hmac.HMAC:
return hmac.new(CONFIG.secret.encode(), digestmod=hashlib.sha256)