We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6965dc6 commit 4ddd5fbCopy full SHA for 4ddd5fb
packages/nylas-connect/src/connect-client.ts
@@ -719,13 +719,9 @@ export class NylasConnect {
719
}
720
721
try {
722
- const response = await fetch(`${this.config.apiUrl}/connect/tokeninfo`, {
723
- method: "POST",
724
- headers: {
725
- "Content-Type": "application/x-www-form-urlencoded",
726
- },
727
- body: `access_token=${encodeURIComponent(accessToken)}`,
728
- });
+ const response = await fetch(
+ `${this.config.apiUrl}/connect/tokeninfo?access_token=${encodeURIComponent(accessToken)}`,
+ );
729
730
const data = await response.json();
731
const isValid = !!(response.ok && data?.data);
0 commit comments