Is there an easy way to determine what type of device was used within the event
or api
object in a post-login action? A couple of use cases would be to:
- Add that device info to an analytics login event
- Count the number of user logins on desktop vs mobile for a web app.
The only field that I see that might work would be the event.request.user_agent
but I’m not sure how consistent that is and looks like that would require some string parsing to determine mobile vs desktop. I’ve also seen isMobile
present in the log details but haven’t seen any way in accessing those via an Action.