Determining login method within server.createUser()

I’m using multiple login services in my app (private, facebook, twitter)
there’s some customization going on the server side with onCreateUser()

I need to understand which method was called.
is there an easy way?

Probably the easiest is to look at the services property. For example, if user.services.facebook is defined, the login was with Facebook; if user.services.bcrypt is defined, it’s password login, etc.

that’s a good idea @sashko.
my problem is that i’m adding some services data to my accounts-passwords users.
therefor, i have user.services.facebook in my accounts-password user object.
maybe I should check one level deeper for an attribute that I’m not using.
thanks!