mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-23 01:59:04 +02:00
feat: add qr code alternative sign in method (#1594)
Co-authored-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
This commit is contained in:
co-authored by
ItalyPaleAle
parent
968f97fa61
commit
e1fd1d320f
@@ -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" }
|
||||
|
||||
Reference in New Issue
Block a user