# Error 45003 Wrong client ID given

**URL:** https://forums.nylas.com/t/error-45003-wrong-client-id-given/457
**Category:** Question and Answers
**Created:** [September 19, 2024, 1:30pm UTC](https://forums.nylas.com/t/error-45003-wrong-client-id-given/457 "2024-09-19T13:30:48Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Kateryna](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@Kateryna](https://forums.nylas.com/u/Kateryna)
#### Post date: [September 19, 2024, 1:30pm UTC](https://forums.nylas.com/t/error-45003-wrong-client-id-given/457/1 "2024-09-19T13:30:48Z")

</div>

Hello, please help me fix error. Why this request does not work. All worked yesterday.  
This is my code, when I get code and api works i get error

```auto
const getGrand = async(token: string) => {
    console.log(token, 'tocken')
    try {
     const response = await fetch('https://api.us.nylas.com/v3/connect/token', {
       method: 'POST',
       headers: {
         'Content-Type': 'application/json',
         Authorization: `Basic ${NylasConfig.apiKey}`,
       },
       body: JSON.stringify({
         client_id: `${NylasConfig.clientIdNylas}`,
         client_secret: `${NylasConfig.apiKey}`,
         grant_type: 'authorization_code',
         code: token,
         redirect_uri:'http://localhost:8080/choosecalendar',
       }),
     });
 
     if (!response.ok) {
       throw new Error('Network response was not ok');
     }
 
     const dataConnectToken = await response.json();
     console.log(dataConnectToken, 'dataConnectToken')
 
    } catch (error) {  
    }  
   }

```

 ![image](https://us1.discourse-cdn.com/flex015/uploads/nylas3/original/1X/5ede78e9eec872ecc98763cc69def06a2703cf94.png)

---

<div class="post-metadata">

### Author: ![Blag](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.nylas.com/blag/32/9_2.png) [@Blag](https://forums.nylas.com/u/Blag)
#### Post date: [September 19, 2024, 1:59pm UTC](https://forums.nylas.com/t/error-45003-wrong-client-id-given/457/2 "2024-09-19T13:59:09Z")

</div>

Hello @Kateryna most likely you’re own grant has expired. Go to your dashboard and check. I had situations were my own samples start failing due to the same reason…

---

<div class="post-metadata">

### Author: ![Kateryna](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@Kateryna](https://forums.nylas.com/u/Kateryna)
#### Post date: [September 19, 2024, 2:33pm UTC](https://forums.nylas.com/t/error-45003-wrong-client-id-given/457/3 "2024-09-19T14:33:40Z")

</div>

@Blag Do I understand correctly, I need to check my Client ID or grand user?  
I get the Client ID from my account, and this grand user does not exist. I send a token to the request and should receive a grand in response, and the user must appear in my account Nylas.

---

<div class="post-metadata">

### Author: ![Kateryna](https://avatars.discourse-cdn.com/v4/letter/k/b5a626/32.png) [@Kateryna](https://forums.nylas.com/u/Kateryna)
#### Post date: [September 19, 2024, 2:48pm UTC](https://forums.nylas.com/t/error-45003-wrong-client-id-given/457/4 "2024-09-19T14:48:40Z")

</div>

@Blag i have problem with my client id which i use for develop. When i try other account for production all works corectly.

---

<div class="post-metadata">

### Author: ![Blag](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.nylas.com/blag/32/9_2.png) [@Blag](https://forums.nylas.com/u/Blag)
#### Post date: [September 19, 2024, 2:49pm UTC](https://forums.nylas.com/t/error-45003-wrong-client-id-given/457/5 "2024-09-19T14:49:05Z")

</div>

@Kateryna What I mean is…

- Go to your dashboard and check if your own grant is valid or not

 ![image](https://us1.discourse-cdn.com/flex015/uploads/nylas3/original/1X/f8c32b5067c113f8e4e1929db478a2870fc1c850.png)

If it’s expired, delete it and add it again…this should fix your issue…
