TF-571 Implement AuthenticationOIDC repository with Hive

This commit is contained in:
Dat PHAM HOANG
2022-05-31 14:29:30 +07:00
committed by Dat H. Pham
parent 03777be4a8
commit 471465e1bc
8 changed files with 246 additions and 1 deletions
@@ -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 => [];
}