TF-571 Implement AuthenticationOIDC repository with Hive
This commit is contained in:
committed by
Dat H. Pham
parent
03777be4a8
commit
471465e1bc
@@ -2,6 +2,7 @@ import 'package:equatable/equatable.dart';
|
||||
|
||||
abstract class AuthenticationException extends Equatable {
|
||||
static const wrongCredential = 'Credential is wrong';
|
||||
static const invalidBaseUrl = 'Invalid base URL';
|
||||
|
||||
const AuthenticationException(String message);
|
||||
}
|
||||
@@ -11,4 +12,19 @@ class BadCredentials extends AuthenticationException {
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
class NotFoundAuthenticatedAccountException implements Exception {
|
||||
NotFoundAuthenticatedAccountException();
|
||||
}
|
||||
|
||||
class NotFoundStoredTokenException implements Exception {
|
||||
NotFoundStoredTokenException();
|
||||
}
|
||||
|
||||
class InvalidBaseUrl extends AuthenticationException {
|
||||
const InvalidBaseUrl() : super(AuthenticationException.invalidBaseUrl);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [];
|
||||
}
|
||||
Reference in New Issue
Block a user