I am working on functionality using AdminSDK to verify ID tokens by the VerifyIDToken function. I would like to write tests including calls of the method, but I found that the SDK tries to call a Firebase Emulator, which host is defined by FIREBASE_AUTH_EMULATOR_HOST variable.
I was surprised because I was sure VerifyIDToken shouldn't call the emulator to check user revocation. I found the place where the problem happens. Could you please describe the reason for this behavior or help me to avoid calls to the emulator?
failed to establish a connection: Post \"http://localhost:9099/identitytoolkit.googleapis.com/v1/projects/project-id/accounts:lookup\": dial tcp [::1]:9099: connect: connection refused"
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
I am working on functionality using AdminSDK to verify ID tokens by the
VerifyIDToken
function. I would like to write tests including calls of the method, but I found that the SDK tries to call a Firebase Emulator, which host is defined byFIREBASE_AUTH_EMULATOR_HOST
variable.I was surprised because I was sure
VerifyIDToken
shouldn't call the emulator to check user revocation. I found the place where the problem happens. Could you please describe the reason for this behavior or help me to avoid calls to the emulator?Relevant Code:
I get this error
Thank you!