PocketBaseClient icon indicating copy to clipboard operation
PocketBaseClient copied to clipboard

PocketBaseClient.Orm.CollectionAuthBase<PocketBaseClient.BlazorPocket.Models.User>) returned null.

Open neozhu opened this issue 1 year ago • 0 comments

I encountered an error when trying to login with Pocketbaseclient. Below are the details:

image

services.AddSingleton(s => new BlazorPocketApplication());


 var result = await PocketbaseClient.Auth.User.AuthenticateWithPasswordAsync(model.Email, model.Paswsword);
namespace PocketBaseClient.BlazorPocket
{
    public partial class BlazorPocketApplication : PocketBaseClientApplication
    {
        private AppDataService? _Data = null;
        /// <summary> Access to Data for Application Acme </summary>
        public AppDataService Data => _Data ??= new AppDataService(this);

        private AppAuthService? _Auth = null;
        /// <summary> Access to Auth for Application Acme </summary>
        public new AppAuthService Auth => _Auth ??= new AppAuthService(this);

        #region Constructors
        public BlazorPocketApplication() : this("http://localhost:8090") { }
        public BlazorPocketApplication(string url, string appName = "BlazorPocketApp") : base(url, appName) { }
        #endregion Constructors
    }
}

neozhu avatar May 18 '24 12:05 neozhu