Issue user-token on register - Twilio

Dear Backendless,

I am using your twilio integration to proivde txt message auth and its working great.

I want to issue a user-token on registering. As currently mu users will have to register - then go through a similar workflow to login. I would prefer for them to register then be automatically logged in.

Can you please assist me in finding the best solution to this!!

Managed this simply with an event handler, to anyone else wanting to do this - simply create an event handler that logs the user in with the newly created user and return it.

1 Like

Hi Anuj,
Can you please elaborate how to do that?
I’m new and need some assistance on how to create the login in the event handler.
I guess it is event “after user register”?
What should be the logic in there?

Thank you