Skip to content

Cannnot get id toke when using app group. #3111

@noppefoxwolf

Description

@noppefoxwolf

[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";
}}}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions