Fixes #22: allow developers to configure which method is used to fetch current user