Commit Graph

22 Commits

Author SHA1 Message Date
hans f5056c36df Add configuration files and update authentication service error handling
- Introduced .vscode/settings.json and .vscode/launch.json for IDE configuration.
- Updated DebugAuthInterface and ArcaneAuthenticationService to return const Result.ok() for consistency.
- Added ArcaneTheme class for theme management.
- Updated pubspec.yaml to change result_monad dependency version.
- Modified authentication_service_test to return const Result.ok() in mock setups.

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-05-07 21:03:50 +02:00
hans c2cfb46d82 Fix authentication interface and service methods for logout and login. 2025-05-19 17:00:01 +02:00
hans 55ff65ba32 Remove unnecessary notifyListeners calls
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2025-05-14 11:11:45 +02:00
hans ac82e93b9d [UNTESTED] Fixes notifiers and adds some additional methods. Adds tests.
Changes:
// ArcaneEnvironment
breaking: context.read<ArcaneEnvironment>() -> ArcaneEnvironment.of(context)
breaking: context.read<ArcaneEnvironment>().state -> ArcaneEnvironment.of(context).environment;

// Feature flag service
added: reset()

// Logging service
added: registerInterface()
added: unregisterInterfaces()
added: unregisterAllInterfaces()

// ArcaneReactiveTheme
fixed: currentMode, dark, light now actually emit new values when changed
added: getters for lightTheme, darkTheme, and systemTheme
TODO: test systemTheme

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2025-04-29 14:16:17 +02:00
hans b129639f1f Formatted files 2025-02-11 14:39:02 +01:00
hans 552398bcc5 v1.2.3
- Added `ValueNotifier`s to both the `ArcaneAuthenticationService` and
  `ArcaneFeatureFlags`. This enables the possibility of listening for changes to
  either service.

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2025-01-14 11:48:25 +01:00
Hans Kokx 129801a0dc v1.2.0
- Removed flutter_secure_storage dependency as it was unused
- BREAKING: several methods were moved from the ArcaneAuthInterface base class into their own mixins

Signed-off-by: Hans Kokx <hans.kokx@hackberry.se>
2024-12-12 15:09:10 +01:00
Hans Kokx adef2e01dd v1.1.7
- Fixed an issue with the `ArcaneAuthenticationService` where an exception would
  be thrown when attempting to access an authentication token while no
  `ArcaneAuthInterface` was registered.

Signed-off-by: Hans Kokx <hans.kokx@hackberry.se>
2024-12-11 11:02:58 +01:00
Hans Kokx 606404b4d3 v1.1.3
- Auth logout no longer throws exceptions, preferring a Result return value instead.

Signed-off-by: Hans Kokx <hans.kokx@hackberry.se>
2024-10-25 12:17:10 +02:00
Hans Kokx 9f00ed205b v1.1.1
Breaking changes:
- Updated ArcaneAuthInterface to make the `resendVerificationCode`, `confirmSignup`, and `resetPassword` methods more versatile

Signed-off-by: Hans Kokx <hans.kokx@hackberry.se>
2024-10-11 14:04:53 +02:00
hans a67e4adfa2 v1.1.0
Breaking changes:
- (ArcaneAuthInterface) Migrated `loginWithEmailAndPassword` to `login`
- (ArcaneAuthInterface) Migrated `signup` to `register`

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-10-10 15:56:38 +02:00
hans 52c6626531 v1.0.5+1
- Marks `loginWithEmailAndPassword` as deprecated and update example

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-09-20 15:23:13 +02:00
hans 05624263fb v1.0.5
- Added the ability to use a generic type for the login method in ArcaneAuthenticationService
- Added the ability to reset the ArcaneAuthenticationService, which will unregister the current interface and clear the authentication state
- Removed unused testing tooling (e.g., `@visibleForTesting`) from the codebase

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-09-20 15:10:00 +02:00
hans 03e3a0bcbd v1.0.4
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-09-18 11:05:11 +02:00
hans 4e22c08ed9 Add error handling to login method
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-09-17 13:01:36 +02:00
hans 32c36413d6 Make onLoggedOut method a future
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-09-17 13:00:24 +02:00
hans c5c41b9dba Added the ability to switch back to normal mode in the environment provider. Adjusted logic to prevent switching to a mode we're already in.
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-09-17 12:31:47 +02:00
hans 3f01e0fb9d Migrated the isSignedIn property in the authentication service to a ValueListenable
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-09-13 13:15:59 +02:00
hans 6969b31ec7 Revert "Remove unused callback from the ArcaneAuthenticationService during logout"
This reverts commit cdc44e8747.
2024-09-13 11:25:28 +02:00
hans cdc44e8747 Remove unused callback from the ArcaneAuthenticationService during logout
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2024-09-13 11:23:52 +02:00
hans a2b3cbb077 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>
2024-09-12 05:09:52 -04:00
hans 56ebaeb346 Initial (#1)
Initial release
2024-09-11 18:49:35 +02:00