feat: Implement JWT authentication for client API and add transaction verification endpoint.

This commit is contained in:
pbao9
2026-02-19 15:38:43 +07:00
parent 75791d6257
commit c7215ababc
15 changed files with 526 additions and 55 deletions
@@ -81,7 +81,7 @@ class ClientController extends Controller
*/
public function me()
{
return new ClientResource(auth('sanctum')->user());
return new ClientResource(auth('client')->user());
}
/**
@@ -201,7 +201,7 @@ class ClientController extends Controller
*/
public function logout()
{
auth('sanctum')->user()->currentAccessToken()->delete();
auth('client')->logout();
return response()->json([
'error' => false,