mirror of
https://github.com/strapi/strapi.git
synced 2025-11-07 05:38:13 +00:00
Add authenticationMethod and isAuthenticatedproperties
This commit is contained in:
parent
333932fce7
commit
943f6178de
@ -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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user