Add authenticationMethod and isAuthenticatedproperties

This commit is contained in:
Christian Capeans 2023-04-14 14:07:54 +02:00
parent 333932fce7
commit 943f6178de

View File

@ -100,6 +100,12 @@ const createAuthentication = () => {
} }
if (typeof auth.strategy.verify === 'function') { if (typeof auth.strategy.verify === 'function') {
strapi.telemetry.send('didCompleteRequest', {
eventProperties: {
authenticationMethod: auth.strategy.name,
isAuthenticated: true,
},
});
return auth.strategy.verify(auth, config); return auth.strategy.verify(auth, config);
} }
}, },