# Cannot access my development environment

**URL:** <https://community.forestadmin.com/t/cannot-access-my-development-environment/5618>\
**Category:** Help me!\
**Created:** [November 30, 2022, 6:38pm UTC](https://community.forestadmin.com/t/cannot-access-my-development-environment/5618 "2022-11-30T18:38:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fbeiger](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/fbeiger/32/4364_2.png) [@fbeiger](https://community.forestadmin.com/u/fbeiger)\
**Post date:** [November 30, 2022, 6:38pm UTC](https://community.forestadmin.com/t/cannot-access-my-development-environment/5618/1 "2022-11-30T18:38:02Z")

</div>

## Feature(s) impacted

Forest development environment

## Observed behavior

I cannot access my development environment. I always have the same message “You are not authorized to access this project”.  
I lost access to my previous computer so I had to run `forest init` on a new one. Because it didn’t work I deleted my previous development env and recreate a new one but without success.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/6/69b6f67417b690ce0563d1d773287d026b78b3a4.png)

When opening the console, the error returned by the authentication endpoint is the following:

```javascript
{
  "error":"invalid_client",
  "error_description":"The provided client id does not match the id received at first place."
}

```

## Expected behavior

> Please describe in this **mandatory section** the behavior you are expecting.

I should be able to access my development environment.

## Context

- Project name: Pinpo Admin
- Team name: Operations
- Environment name: Development
- Agent type & version: `"forest-express-mongoose": "^9.0.3"`
- Recent changes made on your end if any: None.

---

<div class="post-metadata">

**Author:** ![GuillaumeGautreau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaumegautreau/32/557_2.png) [@GuillaumeGautreau](https://community.forestadmin.com/u/GuillaumeGautreau)\
**Post date:** [December 1, 2022, 7:33am UTC](https://community.forestadmin.com/t/cannot-access-my-development-environment/5618/2 "2022-12-01T07:33:07Z")

</div>

Hello @fbeiger,

Thanks for your feedback.

Do you have 2 different instances of your server, or is it restarting frequently?

Can you please send me by direct message the content of your .env file please?

---

<div class="post-metadata">

**Author:** ![GuillaumeGautreau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaumegautreau/32/557_2.png) [@GuillaumeGautreau](https://community.forestadmin.com/u/GuillaumeGautreau)\
**Post date:** [December 5, 2022, 2:33pm UTC](https://community.forestadmin.com/t/cannot-access-my-development-environment/5618/4 "2022-12-05T14:33:17Z")

</div>

Hello @fbeiger,

Just for a follow up, I received the data you shared with me and it indicates that the `FOREST_ENV_SECRET` is correct and matches the development environment on our side.

Can you please share with me the content of the query parameter `client_id` in the call made by the frontend to `https://api.forestadmin.com/oidc/auth`? I’d like to check that this id is correct.

---

<div class="post-metadata">

**Author:** ![fbeiger](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/fbeiger/32/4364_2.png) [@fbeiger](https://community.forestadmin.com/u/fbeiger)\
**Post date:** [December 6, 2022, 6:21pm UTC](https://community.forestadmin.com/t/cannot-access-my-development-environment/5618/5 "2022-12-06T18:21:07Z")

</div>

Hello,

I haven’t touched anything but it seems that I have access to this environment now.

Thanks for your quick answers.
