replace user.provider with user.identity