I'm implementing "login with custom token". I found this snippet of code in the Firebase documentation.
firebaseAuth.createCustomToken(uid)
.addOnSuccessListener(new OnSuccessListener<String>() {
@Override
public void onSuccess(String customToken) {
// Send token back to client
}
});
I have put this code inside the 'onCreate' method and 'createCustomToken' is not being recognized:

Any idea what I'm doing wrong? Thanks in advance!