Add global auth state with composable for reactive login status
This commit is contained in:
@@ -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"
|
||||
}
|
||||
]
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user