fix redirect_uri error

This commit is contained in:
Hongbo Wu 2024-03-04 17:49:59 +08:00
parent 94db3e0de7
commit d36c937765

View file

@ -4,7 +4,7 @@ import { logger } from '../../utils/logger'
import { IntegrationClient } from './integration'
export class NotionClient implements IntegrationClient {
name = 'notion'
name = 'NOTION'
apiUrl = 'https://api.notion.com/v1'
headers = {
'Content-Type': 'application/json',
@ -24,6 +24,7 @@ export class NotionClient implements IntegrationClient {
{
grant_type: 'authorization_code',
code,
redirect_uri: `${env.client.url}/settings/integrations`,
},
{
headers: {