Describe the bug
When I use the skin station and need to use the YggdrasilAuthenticator authenticator, when executing var authResult = await yggdrasilAuthenticator.AuthTaskAsync();, result.User is Null, resulting in Object reference not set to an instance of an object , the first exception occurs at ProjBobcat\DefaultComponent\Authenticator\YggdrasilAuthenticator.cs:line 176
ProjBobcat Version
The latest Master branch of the repository
To Reproduce
Steps to reproduce the behavior:
Initialize the Authenticator
var yggdrasilAuthenticator = new YggdrasilAuthenticator
{
AuthServer = [AuthServer],
Email = [Email],
LauncherAccountParser = ...,
Password = [Password]
};
Use var authResult = await yggdrasilAuthenticator.AuthTaskAsync(); to authenticate.
Go to ProjBobcat\DefaultComponent\Authenticator\YggdrasilAuthenticator.cs:line 176 to see the error.
Expected behavior
Can login
Screenshots
Desktop (please complete the following information):
OS: Windows
Version: 11
Additional context
When I checked the source code, I found that the result.User at
Describe the bug When I use the skin station and need to use the YggdrasilAuthenticator authenticator, when executing
var authResult = await yggdrasilAuthenticator.AuthTaskAsync();
,result.User
is Null, resulting inObject reference not set to an instance of an object
, the first exception occurs atProjBobcat\DefaultComponent\Authenticator\YggdrasilAuthenticator.cs:line 176
ProjBobcat Version The latest Master branch of the repository
To Reproduce Steps to reproduce the behavior:
var authResult = await yggdrasilAuthenticator.AuthTaskAsync();
to authenticate.ProjBobcat\DefaultComponent\Authenticator\YggdrasilAuthenticator.cs:line 176
to see the error.Expected behavior Can login
Screenshots
Desktop (please complete the following information):
Additional context When I checked the source code, I found that the
result.User
atwas Null and caused an exception to be thrown.