# Homey OAuth client library how to use more than one configid

**URL:** <https://community.homey.app/t/homey-oauth-client-library-how-to-use-more-than-one-configid/39940>\
**Category:** Developers\
**Created:** [December 28, 2020, 9:44am UTC](https://community.homey.app/t/homey-oauth-client-library-how-to-use-more-than-one-configid/39940 "2020-12-28T09:44:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_Verbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martin_verbeek/32/10641_2.png) [@Martin\_Verbeek](https://community.homey.app/u/Martin_Verbeek)\
**Post date:** [December 28, 2020, 9:44am UTC](https://community.homey.app/t/homey-oauth-client-library-how-to-use-more-than-one-configid/39940/1 "2020-12-28T09:44:01Z")

</div>

Busy with an app that gets the Nest devices working again, basically it is working with Google Device Access and GCP PubSub events. But would like to make it a litte nicer. For that I need to have an additional OAuth client to do communication with GCP.  
The library has the concept of specifying a configId and creating the config with setOAuth2Config works okay.  
It is getting messy when you want to init the driver (OAuthDriver) with a specific configId. Has anyone done this before?

---

<div class="post-metadata">

**Author:** ![Martin\_Verbeek](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martin_verbeek/32/10641_2.png) [@Martin\_Verbeek](https://community.homey.app/u/Martin_Verbeek)\
**Post date:** [January 28, 2021, 10:13am UTC](https://community.homey.app/t/homey-oauth-client-library-how-to-use-more-than-one-configid/39940/2 "2021-01-28T10:13:32Z")

</div>

When using two configs, looks like you have to define the “default” in addition to the other configID. At first i defined the configs with specific ID´s, now i use one specific and the default. This seems to work.
