mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-05 21:04:43 +08:00
This commit is contained in:
parent
e3aa613861
commit
f1670150fa
11
.zed/settings.json
Normal file
11
.zed/settings.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"code_actions_on_format": {
|
||||
"source.fixAll.biome": true,
|
||||
"source.organizeImports.biome": true
|
||||
},
|
||||
"formatter": {
|
||||
"language_server": {
|
||||
"name": "biome"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -7,7 +7,7 @@ import { encrypt } from "./api/encryption/encrypt";
|
||||
import { isDefined } from "./utils";
|
||||
|
||||
export const getAuthenticatedGoogleClient = async (
|
||||
credentialsId: string
|
||||
credentialsId: string,
|
||||
): Promise<OAuth2Client | undefined> => {
|
||||
const credentials = (await prisma.credentials.findFirst({
|
||||
where: { id: credentialsId },
|
||||
@ -18,7 +18,7 @@ export const getAuthenticatedGoogleClient = async (
|
||||
const oauth2Client = new OAuth2Client(
|
||||
env.GOOGLE_SHEETS_CLIENT_ID,
|
||||
env.GOOGLE_SHEETS_CLIENT_SECRET,
|
||||
`${env.NEXTAUTH_URL}/api/credentials/google-sheets/callback`
|
||||
`${env.NEXTAUTH_URL}/api/credentials/google-sheets/callback`,
|
||||
);
|
||||
oauth2Client.setCredentials(data);
|
||||
oauth2Client.on("tokens", updateTokens(credentialsId, data));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user