Firebase authentication with email/password

前端 未结 1 576
孤街浪徒
孤街浪徒 2021-01-26 00:20

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

1条回答
  •  后悔当初
    2021-01-26 00:50

    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)()
    

    0 讨论(0)
提交回复
热议问题