use vue-cli for front and back end separate development. For example, the front end performs login operation, and the back end returns token:
.return response()->json([
"access_token" => $tokenResult->accessToken,
"token_type" => "Bearer",
"expires_at" => Carbon::parse(
$tokenResult->token->expires_at
)->toDateTimeString()
]);
question:
1. After the frontend gets the token returned by the backend, do you need to bring the token with you every time you initiate a request?
2. Because token is about to expire, does every method in the backend return token??