BillOatman 596 Posted April 3, 2019 Posted April 3, 2019 Hi. I make this call: MediaBrowser.Model.Users.AuthenticationResult authResult = await EmbyClient.AuthenticateUserAsync(user, pass); What is the suggested way to determine if the authentication was successful? Is it by checking if(string.IsNullOrEmpty(authResult.AccessToken)) loggedIn = false; else loggedIn = true;
Solution Luke 42077 Posted April 4, 2019 Solution Posted April 4, 2019 Hi, it's simply by whether it throws an exception or not, so all you need is try/catch. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now