From 943f6178de3493b04f10c452080dee730b205659 Mon Sep 17 00:00:00 2001 From: Christian Capeans Date: Fri, 14 Apr 2023 14:07:54 +0200 Subject: [PATCH] Add authenticationMethod and isAuthenticatedproperties --- packages/core/strapi/lib/services/auth/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/core/strapi/lib/services/auth/index.js b/packages/core/strapi/lib/services/auth/index.js index 6d91e862f9..cbeeb44b5e 100644 --- a/packages/core/strapi/lib/services/auth/index.js +++ b/packages/core/strapi/lib/services/auth/index.js @@ -100,6 +100,12 @@ const createAuthentication = () => { } if (typeof auth.strategy.verify === 'function') { + strapi.telemetry.send('didCompleteRequest', { + eventProperties: { + authenticationMethod: auth.strategy.name, + isAuthenticated: true, + }, + }); return auth.strategy.verify(auth, config); } },