This commit is contained in:
MartinBraquet
2025-10-30 18:01:49 +01:00
parent e41bc64b0c
commit cae4b15bbb
8 changed files with 59 additions and 31 deletions

View File

@@ -733,6 +733,17 @@ export const API = (_apiTypeCheck = {
summary: 'Delete a bookmarked search by ID',
tag: 'Searches',
},
'auth-google': {
method: 'GET',
authed: false,
rateLimited: true,
returns: {} as any,
props: z.object({
code: z.string(),
}),
summary: 'Google Auth',
tag: 'Authentication',
},
} as const)
export type APIPath = keyof typeof API

View File

@@ -24,3 +24,6 @@ export const IS_MAINTENANCE = false // set to true to enable the maintenance mod
export const MIN_BIO_LENGTH = 250
export const WEB_GOOGLE_CLIENT_ID = '253367029065-khkj31qt22l0vc3v754h09vhpg6t33ad.apps.googleusercontent.com'
export const ANDROID_GOOGLE_CLIENT_ID = '253367029065-s9sr5vqgkhc8f7p5s6ti6a4chqsrqgc4.apps.googleusercontent.com'
export const GOOGLE_CLIENT_ID = WEB_GOOGLE_CLIENT_ID

View File

@@ -26,6 +26,7 @@ export const secrets = (
'VAPID_PUBLIC_KEY',
'VAPID_PRIVATE_KEY',
'DB_ENC_MASTER_KEY_BASE64',
'GOOGLE_CLIENT_SECRET',
// Some typescript voodoo to keep the string literal types while being not readonly.
] as const
).concat()