diff --git a/lib/pusher-js/core/auth/options.dart b/lib/pusher-js/core/auth/options.dart index fd10f19..99956e5 100644 --- a/lib/pusher-js/core/auth/options.dart +++ b/lib/pusher-js/core/auth/options.dart @@ -84,6 +84,6 @@ extension AuthorizerOptionsExt on AuthorizerOptions { Map toMap() => { 'authTransport': authTransport, 'authEndpoint': authEndpoint, - 'auth': auth, + 'auth': auth?.toMap(), }; }