Add access token check to auth

This commit is contained in:
Melody Becker 2025-04-04 16:15:25 +02:00
parent 8f53e8a967
commit 6a2b213787
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI
4 changed files with 34 additions and 7 deletions

View file

@ -26,6 +26,10 @@ var (
ErrInvalidPasskeyRegistrationData = errors.New(
"stored passkey registration data was formatted badly",
)
// The given token has expired
ErrTokenExpired = errors.New("token expired")
// The given token doesn't exist
ErrTokenNotFound = errors.New("token not found")
)
// Helper error type to combine two errors into one