BillOatman 492 Posted April 3, 2019 Share 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; Link to comment Share on other sites More sharing options...
Solution Luke 36884 Posted April 4, 2019 Solution Share Posted April 4, 2019 Hi, it's simply by whether it throws an exception or not, so all you need is try/catch. 1 Link to comment Share on other sites More sharing options...
BillOatman 492 Posted April 4, 2019 Author Share Posted April 4, 2019 Ahh OK. Thanks. Link to comment Share on other sites More sharing options...
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