Get Started with Firebase Authentication on Android
Read moreHow does Firebase authentication work under the hood?
What happens under the hood is that the custom token is sent to the Firebase Auth service in exchange for an ID token and refresh token pair which are used to keep the client SDK authenticated .
Read more