I am using Firebase Authentication in an Android application, and I am using Google account authentication as an option to sign in to the application.
How can I know
From the Firebase-ui docs, you can check the last sign-in timestamp against the created-at timestamp like this:
FirebaseUserMetadata metadata = auth.getCurrentUser().getMetadata();
if (metadata.getCreationTimestamp() == metadata.getLastSignInTimestamp()) {
// The user is new, show them a fancy intro screen!
} else {
// This is an existing user, show them a welcome back screen.
}