I have added these 2 packages to my project: https://github.com/step-up-labs/firebase-database-dotnet and https://github.com/step-up-labs/firebase-authentication-dotnet
The WithAuth()
method expects a Func(Of String)
rather than a normal String
.
A Func(Of String)
is a delegate method pointing to a function that returns a string, so you can just have it return auth.FirebaseToken
and it should work:
Dim venues = Await firebase.Child("venues").OrderByKey().WithAuth(DirectCast(Function() auth.FirebaseToken, Func(Of String))).OnceAsync(Of Venue)()