Skip to content

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

@neozhu

Description

@neozhu

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
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions