aboutsummaryrefslogtreecommitdiff
path: root/Psso/AuthInterface/Totp.php
diff options
context:
space:
mode:
authorwinter Sparkles2026-08-08 23:01:51 +0100
committerwinter Sparkles2026-08-08 23:01:51 +0100
commitb422b6ded608807c7d3bb8b965b3797ca513610b (patch)
tree7925fa972efbfff2a9bf8648334d49e3fd6b5df1 /Psso/AuthInterface/Totp.php
parent880a274e1ecbed42c76d3dc4a81161b3ae372726 (diff)
implement a large chunk of the auth system itself :D
Diffstat (limited to 'Psso/AuthInterface/Totp.php')
-rw-r--r--Psso/AuthInterface/Totp.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/Psso/AuthInterface/Totp.php b/Psso/AuthInterface/Totp.php
new file mode 100644
index 0000000..5e09117
--- /dev/null
+++ b/Psso/AuthInterface/Totp.php
@@ -0,0 +1,9 @@
+<?php
+namespace Psso\AuthInterface;
+
+interface Totp {
+ public function validateTotp(
+ string $user,
+ #[\SensitiveParameter] string $otp
+ ): bool;
+}