Plugin Version
1.0.0
Better Auth Version
1.5.5
Description
When the plugin is enabled, logging in with an existing user throws the "Invitation code required" error.
Steps to Reproduce
Enable the plugin and login using an already registered user, using any oauth provider.
Expected Behavior
The invitation code should only required when the oauth callback is called for a new user.
Actual Behavior
The invitation code is now required in every oauth callback call
Runtime
Node.js
Runtime Version
24.9.0
Database Adapter
Other