feat: User onboarding finished

This commit is contained in:
Eric Gullickson
2025-12-23 10:26:10 -06:00
parent 55cf4923b8
commit 96ee43ea94
19 changed files with 698 additions and 67 deletions

View File

@@ -27,4 +27,13 @@ export const authRoutes: FastifyPluginAsync = async (
preHandler: [fastify.authenticate],
handler: authController.resendVerification.bind(authController),
});
// POST /api/auth/resend-verification-public - Resend verification by email (public, no JWT)
fastify.post('/auth/resend-verification-public', authController.resendVerificationPublic.bind(authController));
// GET /api/auth/user-status - Get user status for routing (requires JWT, verification exempt)
fastify.get('/auth/user-status', {
preHandler: [fastify.authenticate],
handler: authController.getUserStatus.bind(authController),
});
};