Thanks everyone for the replies.
This issue occurs with version 2.5.0. It has already been reported on GitHub: Issue #803 .
For now, the workaround is to use version 2.4.0, which I’ve tested and confirmed works fine with Angular 20 (at least for Google login).
So until the maintainers release a fix, it’s better to stick with 2.4.0.