converting to new auth callback signature