Update generate token api

1. Return social login provider name when user is a social login user

2. Update test.generateResetToken.js