Our Infrastructure: - Using better-auth with magic links and Google OAuth (email/password is disabled) - Frontend: Next.js app with better-auth client - Backend: Express.js server
The Issue: The Bearer plugin docs show that tokens should be returned in the set-auth-token header during sign-in, but we're not seeing this header in our responses. Or maybe the onSuccess isn't even being triggered with the google oauth and magic links?
Does the Bearer plugin work with magic links and OAuth, or only with email/password? Are we missing some configuration to enable token generation? Should we be looking for the token in a different place or using a different approach?