feat: Implement JWT authentication for client API and add transaction verification endpoint.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user