mirror of
https://github.com/hanskokx/arcane_framework.git
synced 2026-05-14 10:29:06 +02:00
Removed ID and secure storage services to improve compatibility with different platforms. Removed app tracking handling from the logging service.
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -52,8 +52,6 @@ class ArcaneAuthenticationService extends ArcaneService {
|
||||
/// provides one.
|
||||
Future<String?> get refreshToken => authInterface.refreshToken;
|
||||
|
||||
static ArcaneSecureStorage get _storage => Arcane.storage;
|
||||
|
||||
/// Registers an `ArcaneAuthInterface` within the `ArcaneAuthenticationService`.
|
||||
Future<void> registerInterface(ArcaneAuthInterface authInterface) async {
|
||||
_authInterface = authInterface;
|
||||
@@ -113,7 +111,6 @@ class ArcaneAuthenticationService extends ArcaneService {
|
||||
|
||||
await loggedOut.fold(
|
||||
onSuccess: (_) async {
|
||||
await _storage.deleteAll();
|
||||
setUnauthenticated();
|
||||
onLoggedOut();
|
||||
},
|
||||
@@ -147,7 +144,6 @@ class ArcaneAuthenticationService extends ArcaneService {
|
||||
);
|
||||
|
||||
if (result.isSuccess) {
|
||||
await _storage.setValue(ArcaneSecureStorage.emailKey, email);
|
||||
setAuthenticated();
|
||||
if (onLoggedIn != null) await onLoggedIn();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user