Code review comment: Yes. Thing is that we would need to know if a refresh happened before to make the second point work. I think is easier to just let them refresh and get a new set of tokens.

Code under review:
public void accept(UniEmitter<? super SecurityIdentity> emitter) {
                            OAuth2TokenImpl token = new OAuth2TokenImpl(configContext.auth, new JsonObject());

                            
                            token.principal().put("refresh_token", entry.getToken());

                            token.refresh(new Handler<AsyncResult<Void>>() {
                                @Override
                                public void handle(AsyncResult<Void> result) {
                                    if (result.succeeded()) {
                                        authenticate(identityProviderManager,
                                                new IdTokenCredential(token.opaqueIdToken(), context))
                                                        .subscribe().with(new Consumer<SecurityIdentity>() {
                                                            @Override
                                                            public void accept(SecurityIdentity identity) {
                                                                
                                                                processSuccessfulAuthentication(context, configContext, token,
                                                                        identity);
                                                                
                                                                entry.setToken(token.opaqueRefreshToken());
                                                                emitter.complete(
                                                                        augmentIdentity(identity, token.opaqueAccessToken(),
                                                                                token.opaqueRefreshToken(),
                                                                                context));
                                                            }
                                                        }, new Consumer<Throwable>() {
                                                            @Override
                                                            public void accept(Throwable throwable) {
                                                                emitter.fail(throwable);
                                                            }
                                                        });
                                    } else {
                                        emitter.fail(new AuthenticationFailedException(result.cause()));
                                    }
                                }
                            });
                        }

Line commented on: context));

Revised code:
public void accept(UniEmitter<? super SecurityIdentity> emitter) {
                OAuth2TokenImpl token = new OAuth2TokenImpl(configContext.auth, new JsonObject());

                
                token.principal().put("refresh_token", refreshToken);

                token.refresh(new Handler<AsyncResult<Void>>() {
                    @Override
                    public void handle(AsyncResult<Void> result) {
                        if (result.succeeded()) {
                            authenticate(identityProviderManager,
                                    new IdTokenCredential(token.opaqueIdToken(), context))
                                            .subscribe().with(new Consumer<SecurityIdentity>() {
                                                @Override
                                                public void accept(SecurityIdentity identity) {
                                                    
                                                    processSuccessfulAuthentication(context, configContext, token,
                                                            identity);
                                                    
                                                    emitter.complete(
                                                            augmentIdentity(identity, token.opaqueAccessToken(),
                                                                    token.opaqueRefreshToken(),
                                                                    context));
                                                }
                                            }, new Consumer<Throwable>() {
                                                @Override
                                                public void accept(Throwable throwable) {
                                                    emitter.fail(throwable);
                                                }
                                            });
                        } else {
                            emitter.fail(new AuthenticationFailedException(result.cause()));
                        }
                    }
                });
            }