fix(ts): correct `credentials` types in `authorize` callback (#6648)
* fix(ts): correct `credentials` types in `authorize` callback
* Apply suggestions from code review
Co-authored-by: Thang Vu <hi@thvu.dev>
---------
Co-authored-by: Thang Vu <hi@thvu.dev>