Fix for authentication problem with sample app

Fixes an issue with the user object not being returned when attempting
to authenticate