I checked the documentation for the User object and didn't find any explanation on how the
LastLoginDate is managed. The description was not helpful:
The date and time when the user last successfully logged in. This value is updated if 60 seconds have elapsed since the user’s last login.
So my question is can I rely on the
LastLoginDate field to determine when the user logs in to Community for the first time. My goal is to redirect users who log in for the first time to their profiles pages. If the value in
LastLoginDate is blank it means that the user has never logged in to Community and they should be redirected to the profile page.