fix(ts): TS Module Augmentation (#5556)
* fix: TS Module Augmentation
* match type to AdapterUser
* refactor authorize callback
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: Balázs Orbán <info@balazsorban.com>