-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
[READ] Step 1: Are you in the right place?
ok
[REQUIRED] Step 2: Describe your environment
- Xcode version: 10.2 10E125
- Firebase SDK version: 6.1.0
- Firebase Component: Auth (Auth, Core, Database, Firestore, Messaging, Storage, etc)
- Component version: 6.1.0
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
I can get id token with using access group.
But cannot get id token after a short time.(Probably, id token expired.)
And return this error.
Auth.auth().currentUser!.getIdToken { //success }
// ... wait 1hour
// kill app
// reopen app
let user = Auth.auth().currentUser! // user exists
user.getIdToken { //failure }
Relevant Code:
Error Domain=FIRAuthErrorDomain Code=17999 "An internal error has occurred, print and inspect the error details for more information." UserInfo={FIRAuthErrorUserInfoNameKey=ERROR_INTERNAL_ERROR, NSLocalizedDescription=An internal error has occurred, print and inspect the error details for more information., NSUnderlyingError=0x283a45e30 {Error Domain=FIRAuthInternalErrorDomain Code=3 "(null)" UserInfo={FIRAuthErrorUserInfoDeserializedResponseKey={
code = 400;
details = (
{
"@type" = "type.googleapis.com/google.rpc.Help";
links = (
{
description = "Google developers console";
url = "https://console.developers.google.com";
}
);
}
);
message = "API key not valid. Please pass a valid API key.";
status = "INVALID_ARGUMENT";
}}}}
pwinterh