Implement authentication phase with Cidaas OAuth2 integration
- Add authentication middleware to protect routes - Create API endpoints for login, logout, registration, and user info - Develop UI components for login and registration forms - Integrate VeeValidate for form validation - Update environment configuration for Cidaas settings - Add i18n support for English and German languages - Enhance Tailwind CSS for improved styling of auth components - Document authentication flow and testing procedures
This commit is contained in:
@@ -32,3 +32,13 @@ const client = postgres(config.databaseUrl)
|
||||
|
||||
// Create Drizzle ORM instance with schema
|
||||
export const db = drizzle(client, { schema })
|
||||
|
||||
/**
|
||||
* Helper function to get database instance
|
||||
* Used in event handlers for consistency with Nuxt patterns
|
||||
*
|
||||
* @returns Drizzle database instance
|
||||
*/
|
||||
export function useDatabase() {
|
||||
return db
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user