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,141 @@
{
"chapterNum": 25,
"verses": [
{
"verseNum": 1,
"text": "Now Abraham had taken another wife, named Keturah,"
},
{
"verseNum": 2,
"text": "and she bore him Zimran, Jokshan, Medan, Midian, Ishbak, and Shuah."
},
{
"verseNum": 3,
"text": "Jokshan was the father of Sheba and Dedan. And the sons of Dedan were the Asshurites, the Letushites, and the Leummites."
},
{
"verseNum": 4,
"text": "The sons of Midian were Ephah, Epher, Hanoch, Abida, and Eldaah.\n \nAll these were descendants of Keturah."
},
{
"verseNum": 5,
"text": "Abraham left everything he owned to Isaac."
},
{
"verseNum": 6,
"text": "But while he was still alive, Abraham gave gifts to the sons of his concubines and sent them away from his son Isaac to the land of the east."
},
{
"verseNum": 7,
"text": "Abraham lived a total of 175 years."
},
{
"verseNum": 8,
"text": "And at a ripe old age he breathed his last and died, old and contented, and was gathered to his people."
},
{
"verseNum": 9,
"text": "His sons Isaac and Ishmael buried him in the cave of Machpelah near Mamre, in the field of Ephron son of Zohar the Hittite."
},
{
"verseNum": 10,
"text": "This was the field that Abraham had bought from the Hittites. Abraham was buried there with his wife Sarah."
},
{
"verseNum": 11,
"text": "After Abrahams death, God blessed his son Isaac, who lived near Beer-lahai-roi."
},
{
"verseNum": 12,
"text": "This is the account of Abrahams son Ishmael, whom Hagar the Egyptian, Sarahs maidservant, bore to Abraham."
},
{
"verseNum": 13,
"text": "These are the names of the sons of Ishmael in the order of their birth: Nebaioth the firstborn of Ishmael, then Kedar, Adbeel, Mibsam,"
},
{
"verseNum": 14,
"text": "Mishma, Dumah, Massa,"
},
{
"verseNum": 15,
"text": "Hadad, Tema, Jetur, Naphish, and Kedemah."
},
{
"verseNum": 16,
"text": "These were the sons of Ishmael, and these were their names by their villages and encampments—twelve princes of their tribes."
},
{
"verseNum": 17,
"text": "Ishmael lived a total of 137 years. Then he breathed his last and died, and was gathered to his people."
},
{
"verseNum": 18,
"text": "Ishmaels descendants settled from Havilah to Shur, which is near the border of Egypt as you go toward Asshur. And they lived in hostility toward all their brothers."
},
{
"verseNum": 19,
"text": "This is the account of Abrahams son Isaac. Abraham became the father of Isaac,"
},
{
"verseNum": 20,
"text": "and Isaac was forty years old when he married Rebekah, the daughter of Bethuel the Aramean from Paddan-aram and the sister of Laban the Aramean."
},
{
"verseNum": 21,
"text": "Later, Isaac prayed to the LORD on behalf of his wife, because she was barren. And the LORD heard his prayer, and his wife Rebekah conceived."
},
{
"verseNum": 22,
"text": "But the children inside her struggled with each other, and she said, “Why is this happening to me?” So Rebekah went to inquire of the LORD,"
},
{
"verseNum": 23,
"text": "and He declared to her:\n \n “Two nations are in your womb,\n and two peoples from within you will be separated;\n one people will be stronger than the other,\n and the older will serve the younger.”"
},
{
"verseNum": 24,
"text": "When her time came to give birth, there were indeed twins in her womb."
},
{
"verseNum": 25,
"text": "The first one came out red, covered with hair like a fur coat; so they named him Esau."
},
{
"verseNum": 26,
"text": "After this, his brother came out grasping Esaus heel; so he was named Jacob. And Isaac was sixty years old when the twins were born."
},
{
"verseNum": 27,
"text": "When the boys grew up, Esau became a skillful hunter, a man of the field, while Jacob was a quiet man who stayed at home."
},
{
"verseNum": 28,
"text": "Because Isaac had a taste for wild game, he loved Esau; but Rebekah loved Jacob."
},
{
"verseNum": 29,
"text": "One day, while Jacob was cooking some stew, Esau came in from the field and was famished."
},
{
"verseNum": 30,
"text": "He said to Jacob, “Let me eat some of that red stew, for I am famished.” (That is why he was also called Edom.)"
},
{
"verseNum": 31,
"text": "“First sell me your birthright,” Jacob replied."
},
{
"verseNum": 32,
"text": "“Look,” said Esau, “I am about to die, so what good is a birthright to me?”"
},
{
"verseNum": 33,
"text": "“Swear to me first,” Jacob said.\n \nSo Esau swore to Jacob and sold him the birthright."
},
{
"verseNum": 34,
"text": "Then Jacob gave some bread and lentil stew to Esau, who ate and drank and then got up and went away. Thus Esau despised his birthright."
}
]
}