Added new UserDetails implementation to get the user id from the auth session.