feat(github-redirect): save webhook secret into database on redirect

This commit is contained in:
Slowlydev 2024-07-02 17:33:02 +02:00
parent cb6d8fceb4
commit dd3ba7e836

View File

@ -38,6 +38,7 @@ export default async function handler(
githubAppName: data.name, githubAppName: data.name,
githubClientId: data.client_id, githubClientId: data.client_id,
githubClientSecret: data.client_secret, githubClientSecret: data.client_secret,
githubWebhookSecret: data.webhook_secret,
githubPrivateKey: data.pem, githubPrivateKey: data.pem,
}) })
.where(eq(admins.authId, authId as string)) .where(eq(admins.authId, authId as string))