Support Topics Documentation Slack YouTube Blog

Another login api


(morteza hosseini) #1

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?


(Anton Govorushkin) #2

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


(morteza hosseini) #3

Hi Anton. thanks. i solved it.