If you are using my code example for loading a user from a token
That code does if (count(response -> data) != 1) return an error
So you either got zero rewards or more than one reward returned.
So you are using my code example wrong for this endpoint