# No able to log in on local environement

**URL:** <https://community.forestadmin.com/t/no-able-to-log-in-on-local-environement/4783>\
**Category:** Help me!\
**Created:** [June 9, 2022, 10:59am UTC](https://community.forestadmin.com/t/no-able-to-log-in-on-local-environement/4783 "2022-06-09T10:59:31Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![morganperre](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/morganperre/32/1296_2.png) [@morganperre](https://community.forestadmin.com/u/morganperre)\
**Post date:** [June 15, 2022, 11:27am UTC](https://community.forestadmin.com/t/no-able-to-log-in-on-local-environement/4783/14 "2022-06-15T11:27:24Z")

</div>

> [@Raphael\_Neves](#):
>
> When I remove it, **clientId** becomes **undefined**.
> 
> Response from authentication: `authorizationUrl: "https://api.forestadmin.com/oidc/auth?client_id=undefined&scope=openid%20email%20profile&response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A3310%2Fforest%2Fauthentication%2Fcallback&state=%7B%22renderingId%22%3A66333%7D"`

Normally, your agent should call `/oidc/reg` to register a new **client\_id**. Can you restart your local server and give me the exact time you restart it ? (This way I should be able to track your call in our monitoring to see if I can find something)

I’m not sure to understand how your envs variables work, how your `config.yml` pass the environement variables to the agent ? Does it generated a `.env` ?

Another thought, can you share the way you integrated forest/you pass your environment variables to forest ?

Do you use external libs ? In an other thread an outdated version of `google-auth-library` makes things go crazy.

> [@Upgrade to forest-express-mongoose@7.x.x failed due to openid login callback](https://community.forestadmin.com/t/upgrade-to-forest-express-mongoose-7-x-x-failed-due-to-openid-login-callback/2569/8):
>
> So, after exhaustively commenting out import, I traced the issue back to an outdated package: google-auth-library. After updating this package to the latest version, everything is working fine raised_hands

Kind regards,  
Morgan

---

_[View the full topic](https://community.forestadmin.com/t/no-able-to-log-in-on-local-environement/4783)._
