CtrlAppAuthConfig class

Constructors

CtrlAppAuthConfig({required Uri baseUrl, required String appId, required String env, required Uri callbackUrl, String? defaultProvider, SecureStore? secureStore, Duration requestTimeout = const Duration(seconds: 20), Future<void> browserLauncher(Uri url)?})
const

Properties

appId → String
final
baseUrl → Uri
Absolute origin of the CtrlApp BFF (e.g. https://myapp.example.com).
final
browserLauncher → Future<void> Function(Uri url)?
Optional launcher for the system browser. Injected so widget tests can drive signIn() without opening a real browser. Real apps wire this to url_launcher.launchUrl(mode: LaunchMode.externalApplication).
final
callbackUrl → Uri
Registered Android app link / iOS universal link the callback arrives on. Example: myapp://auth/callback (custom scheme) or https://myapp.example.com/auth/callback (universal link).
final
defaultProvider → String?
final
env → String
final
hashCode → int
The hash code for this object.
no setterinherited
requestTimeout → Duration
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secureStore → SecureStore?
Optional CSRF token store override. Defaults to secure storage.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited