Bawantha
Bawantha

Reputation: 4018

Firebase Admin SDK FirebaseAuthException : Unexpected error refreshing access token

I'm using Firebase Admin SDK to get registered users to my Spring boot app this worked fine previous days ago

UserRecord userRecord = FirebaseAuth.getInstance(FirebaseApp.getInstance()).getUserByPhoneNumber(phoneNumber);

But suddenly I'm receiving this FirbaseAuthExcetpion

com.google.firebase.auth.FirebaseAuthException: Unknown error while making a remote service call: Unexpected error refreshing access token

Can you help me with this exception. Thank you

Upvotes: 1

Views: 2953

Answers (1)

Bawantha
Bawantha

Reputation: 4018

The issue was a dependency conflict of com.google.guava library, in my case Swagger has been using old a version of Guava, so I had to add exclusion for Swagger Guava library

 <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-swagger2</artifactId>
            <version>${springfox-swagger2.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>com.google.guava</groupId>
                    <artifactId>guava</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

Upvotes: 4

Related Questions