getClient('oauth')->redirect(); } #[Route(path: "/login/oauth/token", name: "oauth_connect_token")] #[IsGranted('IS_AUTHENTICATED_FULLY')] public function loginOAuthToken(UserInterface $user, JWTTokenManagerInterface $JWTManager): JsonResponse { return new JsonResponse(['token' => $JWTManager->create($user)]); } }