Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check whether a session is valid #15

Open
JoshuaD84 opened this issue Jan 20, 2018 · 1 comment
Open

Check whether a session is valid #15

JoshuaD84 opened this issue Jan 20, 2018 · 1 comment

Comments

@JoshuaD84
Copy link

After calling

	session = Authenticator.getMobileSession( username, password, key, secret );

Is there a way to check whether that session is valid, and if not, why it failed (i.e. bad username / password, no internet connection, etc.)

Thank you!

@mvmn
Copy link

mvmn commented Nov 27, 2020

Experimentally found out that it returns null if you use invalid credentials
For connection errors it will probably throw exceptions - got to try with disconnected WiFi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants