Hello! When a call services.AppleAuth.login from client app (iPhone) everything works well.
New object on “Users” table is being created correctly, but event handler not call.
I tested this event on rest console with basic registration and everything works well.
These methods are not called:
void afterOAuthRegister
void afterOAuthLogin
void afterLogin
void afterRegister
if use @Asset( “Users” ) and method void afterCreate then it is also not called.
How to catch the services event.AppleAuth.login?
Hello @Alexander_Volkov
Thank you for contacting the support team. We will investigate the problem and reply to you as soon as possible.
Regards,
Inna
@Alexander_Volkov
We were able to reproduce this problem. Internal ticket BKNDLSS-27781 was created. As soon as the problem is fixed, we will let you know in this thread.
Regards,
Inna
Hi @Alexander_Volkov,
Unfortunately AppleLogin doesn’t support these handlers. before/after OAuth handlers supported only by OAuth providers which are configured via “Users” > “Login Providers” section. before/after handlers for login and register actions are not supported because of specific internal implementation of this service - it doesn’t use “login” or “register” API routes so there is no possibility to trigger events for these actions.
The only way out for you is to add “proxy” service in front of AppleLogin service. In this way you will be able to execute some logic before and after login method call.
Sorry for inconvenience.
Regards, Andriy