Skip to content

Commit 1be9493

Browse files
committed
Enhance security and error handling in webhook and tracking APIs
- In `renew-webhooks.post.ts`, implemented fixed-length buffers for comparing CRON secrets to prevent timing attacks. - Updated error handling to throw a 403 status for invalid cron secrets. - In `track/[code].get.ts`, added a check for the `BETTER_AUTH_URL` environment variable and throw a 500 error if misconfigured. - Ensured `ref` parameter in redirect URLs is properly encoded to prevent potential issues with special characters.
1 parent 877d03c commit 1be9493

4 files changed

Lines changed: 537 additions & 159 deletions

File tree

app/components/AppTopBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const jobTabs = computed(() => {
119119
// Main navigation
120120
// ─────────────────────────────────────────────
121121
122-
const mainNav = [
122+
const mainNav: Array<{ label: string; to: string; icon: typeof Briefcase; exact: boolean; comingSoon?: boolean }> = [
123123
{ label: 'Dashboard', to: '/dashboard', icon: LayoutDashboard, exact: true },
124124
{ label: 'Jobs', to: '/dashboard/jobs', icon: Briefcase, exact: false },
125125
{ label: 'Candidates', to: '/dashboard/candidates', icon: Users, exact: false },

0 commit comments

Comments
 (0)