- Add null-safe checks before returning auth credentials - Align callback typing and optional arguments