- Implement complete authentication system with JWT token validation - Add auth provider with persistent login state across page refreshes - Create multilingual login/register forms with Material-UI components - Fix token validation using raw SQL queries to bypass Prisma sync issues - Add comprehensive error handling for expired/invalid tokens - Create profile and settings pages with full i18n support - Add proper user role management (admin/user) with database sync - Implement secure middleware with CSRF protection and auth checks - Add debug endpoints for troubleshooting authentication issues - Fix Zustand store persistence for authentication state 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
54 lines
857 B
TypeScript
54 lines
857 B
TypeScript
export interface User {
|
|
id: string
|
|
email: string
|
|
name: string | null
|
|
role: string
|
|
theme: string
|
|
fontSize: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
lastLoginAt: Date | null
|
|
}
|
|
|
|
export interface BibleVerse {
|
|
id: string
|
|
chapterId: string
|
|
verseNum: number
|
|
text: string
|
|
version: string
|
|
chapter: {
|
|
chapterNum: number
|
|
book: {
|
|
name: string
|
|
}
|
|
}
|
|
}
|
|
|
|
export interface ChatMessage {
|
|
id: string
|
|
userId: string
|
|
role: 'user' | 'assistant'
|
|
content: string
|
|
metadata?: any
|
|
createdAt: Date
|
|
}
|
|
|
|
export interface Bookmark {
|
|
id: string
|
|
userId: string
|
|
verseId: string
|
|
note: string | null
|
|
color: string
|
|
createdAt: Date
|
|
verse: BibleVerse
|
|
}
|
|
|
|
export interface PrayerRequest {
|
|
id: string
|
|
userId: string | null
|
|
content: string
|
|
isAnonymous: boolean
|
|
prayerCount: number
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
} |