AuthResult.cancelled constructor
AuthResult.cancelled({})
Creates a cancelled authentication result (user cancelled the flow)
Implementation
factory AuthResult.cancelled({
String message = 'Authentication was cancelled by the user',
Map<String, dynamic> metadata = const {},
}) {
return AuthResult._(
success: false,
cancelled: true,
error: FrappeUserCancelledException(message),
metadata: metadata,
);
}