Add global auth state with composable for reactive login status

This commit is contained in:
Torsten Schulz (local)
2025-10-21 14:12:01 +02:00
parent 86f21537a8
commit 1015d37eb7
175 changed files with 1618 additions and 2157 deletions

View File

@@ -33,5 +33,12 @@
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjEiLCJlbWFpbCI6ImFkbWluQGhhcmhlaW1lcnRjLmRlIiwicm9sZSI6ImFkbWluIiwiaWF0IjoxNzYxMDM5NjE2LCJleHAiOjE3NjE2NDQ0MTZ9.hY9asuuJ_dymk8L6taeOcT_RNru-LoJC5MjgjCKg4Is",
"createdAt": "2025-10-21T09:40:16.843Z",
"expiresAt": "2025-10-28T09:40:16.843Z"
},
{
"id": "1761048580103",
"userId": "1",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjEiLCJlbWFpbCI6ImFkbWluQGhhcmhlaW1lcnRjLmRlIiwicm9sZSI6ImFkbWluIiwiaWF0IjoxNzYxMDQ4NTgwLCJleHAiOjE3NjE2NTMzODB9._ZEOavin4scWHMI9ofk3MBNdx98K7Q_JossQYxUX4rQ",
"createdAt": "2025-10-21T12:09:40.103Z",
"expiresAt": "2025-10-28T12:09:40.103Z"
}
]

View File

@@ -8,6 +8,6 @@
"phone": "",
"active": true,
"created": "2025-10-21T00:00:00.000Z",
"lastLogin": "2025-10-21T09:40:16.843Z"
"lastLogin": "2025-10-21T12:09:40.103Z"
}
]