feat: authsession service

This commit is contained in:
Ilia Denisov
2026-04-08 16:23:07 +02:00
committed by GitHub
parent 28f04916af
commit 86a68ed9d0
174 changed files with 31732 additions and 112 deletions
+11
View File
@@ -0,0 +1,11 @@
package ports
// CodeHasher hashes cleartext confirmation codes and compares later user input
// against stored hashes.
type CodeHasher interface {
// Hash returns the stored representation for code.
Hash(code string) ([]byte, error)
// Compare reports whether hash matches code.
Compare(hash []byte, code string) (bool, error)
}