Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void auth() throws InterruptedException {
- final CountDownLatch cd = new CountDownLatch(1);
- firebaseRef.authWithPassword(user, password,
- new Firebase.AuthResultHandler() {
- @Override
- public void onAuthenticated(AuthData authData) {
- System.out.println("Auth successful " + authData);
- cd.countDown();
- }
- @Override
- public void onAuthenticationError(FirebaseError firebaseError) {
- System.out.println("Authentication failed " + firebaseError);
- cd.countDown();
- }
- });
- cd.await();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement