After hook for social logins, newSession is null?

When I sign up with my social accounts, ctx.context.newSession is always null in the after hook. Is this intended? If so, how can I handle https://www.better-auth.com/docs/concepts/hooks#example-send-a-notification-to-your-channel-when-a-new-user-is-registered but for social? It works fine for e.g. email otp
Better Auth Hooks let you customize BetterAuth's behavior
Solution
newSession on social logins is generated on /callback path not on /sign-in/social
Was this page helpful?