add auth api method to get authenticated user

this is needed for a lot of features and the old method wasn't working correctly