Fix authentication state persistence and admin role display

- 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>
This commit is contained in:
andupetcu
2025-09-21 01:06:30 +03:00
parent 62ca73b2ac
commit 196ca00194
174 changed files with 181207 additions and 179 deletions

View File

@@ -0,0 +1,133 @@
{
"chapterNum": 10,
"verses": [
{
"verseNum": 1,
"text": "This is the account of Noahs sons Shem, Ham, and Japheth, who also had sons after the flood."
},
{
"verseNum": 2,
"text": "The sons of Japheth:\n \n Gomer, Magog, Madai, Javan, Tubal, Meshech, and Tiras."
},
{
"verseNum": 3,
"text": "The sons of Gomer:\n \n Ashkenaz, Riphath, and Togarmah."
},
{
"verseNum": 4,
"text": "And the sons of Javan:\n \n Elishah, Tarshish, the Kittites, and the Rodanites."
},
{
"verseNum": 5,
"text": "From these, the maritime peoples separated into their territories, according to their languages, by clans within their nations."
},
{
"verseNum": 6,
"text": "The sons of Ham:\n \n Cush, Mizraim, Put, and Canaan."
},
{
"verseNum": 7,
"text": "The sons of Cush:\n \n Seba, Havilah, Sabtah, Raamah, and Sabteca.\n \nAnd the sons of Raamah:\n \n Sheba and Dedan."
},
{
"verseNum": 8,
"text": "Cush was the father of Nimrod, who began to be a mighty one on the earth."
},
{
"verseNum": 9,
"text": "He was a mighty hunter before the LORD; so it is said, “Like Nimrod, a mighty hunter before the LORD.”"
},
{
"verseNum": 10,
"text": "His kingdom began in Babylon, Erech, Accad, and Calneh, in the land of Shinar."
},
{
"verseNum": 11,
"text": "From that land he went forth into Assyria, where he built Nineveh, Rehoboth-Ir, Calah,"
},
{
"verseNum": 12,
"text": "and Resen, which is between Nineveh and the great city of Calah."
},
{
"verseNum": 13,
"text": "Mizraim was the father of the Ludites, the Anamites, the Lehabites, the Naphtuhites,"
},
{
"verseNum": 14,
"text": "the Pathrusites, the Casluhites (from whom the Philistines came), and the Caphtorites."
},
{
"verseNum": 15,
"text": "And Canaan was the father of Sidon his firstborn, and of the Hittites,"
},
{
"verseNum": 16,
"text": "the Jebusites, the Amorites, the Girgashites,"
},
{
"verseNum": 17,
"text": "the Hivites, the Arkites, the Sinites,"
},
{
"verseNum": 18,
"text": "the Arvadites, the Zemarites, and the Hamathites.\n \nLater the Canaanite clans were scattered,"
},
{
"verseNum": 19,
"text": "and the borders of Canaan extended from Sidon toward Gerar as far as Gaza, and then toward Sodom, Gomorrah, Admah, and Zeboiim, as far as Lasha."
},
{
"verseNum": 20,
"text": "These are the sons of Ham according to their clans, languages, lands, and nations."
},
{
"verseNum": 21,
"text": "And sons were also born to Shem, the older brother of Japheth; Shem was the forefather of all the sons of Eber."
},
{
"verseNum": 22,
"text": "The sons of Shem:\n \n Elam, Asshur, Arphaxad, Lud, and Aram."
},
{
"verseNum": 23,
"text": "The sons of Aram:\n \n Uz, Hul, Gether, and Mash."
},
{
"verseNum": 24,
"text": "Arphaxad was the father of Shelah, and Shelah was the father of Eber."
},
{
"verseNum": 25,
"text": "Two sons were born to Eber: One was named Peleg, because in his days the earth was divided, and his brother was named Joktan."
},
{
"verseNum": 26,
"text": "And Joktan was the father of Almodad, Sheleph, Hazarmaveth, Jerah,"
},
{
"verseNum": 27,
"text": "Hadoram, Uzal, Diklah,"
},
{
"verseNum": 28,
"text": "Obal, Abimael, Sheba,"
},
{
"verseNum": 29,
"text": "Ophir, Havilah, and Jobab. All these were sons of Joktan."
},
{
"verseNum": 30,
"text": "Their territory extended from Mesha to Sephar, in the eastern hill country."
},
{
"verseNum": 31,
"text": "These are the sons of Shem, according to their clans, languages, lands, and nations."
},
{
"verseNum": 32,
"text": "All these are the clans of Noahs sons, according to their generations and nations. From these the nations of the earth spread out after the flood."
}
]
}