ISpectLoggerAuth extension
Trace helpers for authentication flows (sign-in, sign-out, refresh, etc.).
- on
Methods
-
auth(
{required String source, required String operation, String? userId, String? provider, bool? success, Object? error, Duration? duration, Map< String, Object?> ? meta, ISpectTraceConfig? config, String? correlationId}) → void -
Available on ISpectLogger, provided by the ISpectLoggerAuth extension
Logs a one-shot auth event without awaiting a future. -
authTrace<
T> ({required String source, required String operation, required Future< T> run(), String? userId, String? provider, Map<String, Object?> ? meta, Object? projectResult(T)?, ISpectTraceConfig? config, String? correlationId}) → Future<T> -
Available on ISpectLogger, provided by the ISpectLoggerAuth extension
Traces an async auth operation under authCategory.