Another login api

Hi,
i use rest api to login in one device. i use same api to login from another type of device. my problem:
in TYPE1 device i need get all user data back after login + autoload data; but in TYPE2 device i need a little info from user after login(i need just user-token for example), what can i do?

Hi @morteza-hosseini

There is no direct way you achieve this in login function, but you can run an afterLogin event handler, where you can add logic to identify the device type and filter required properties if needed.

Anton

Hi Anton. thanks. i solved it.