feat: add qr code alternative sign in method (#1594)

Co-authored-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
This commit is contained in:
Elias Schneider
2026-07-28 01:30:13 +02:00
committed by GitHub
co-authored by ItalyPaleAle
parent 968f97fa61
commit e1fd1d320f
38 changed files with 2215 additions and 73 deletions
+14
View File
@@ -188,6 +188,20 @@ type OneTimeAccessDisabledError struct{}
func (e OneTimeAccessDisabledError) Error() string { return "One-time access is disabled" }
func (e OneTimeAccessDisabledError) HttpStatusCode() int { return http.StatusBadRequest }
type DeviceLoginRequestInvalidOrExpiredError struct{}
func (e DeviceLoginRequestInvalidOrExpiredError) Error() string {
return "Device login request is invalid or expired"
}
func (e DeviceLoginRequestInvalidOrExpiredError) HttpStatusCode() int {
return http.StatusUnauthorized
}
type DeviceLoginDeniedError struct{}
func (e DeviceLoginDeniedError) Error() string { return "Device login request was denied" }
func (e DeviceLoginDeniedError) HttpStatusCode() int { return http.StatusForbidden }
type InvalidAPIKeyError struct{}
func (e InvalidAPIKeyError) Error() string { return "Invalid Api Key" }