onLinkAccount not called after Phone Login #2103

Closed
opened 2026-03-13 09:27:30 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @SamJbori on GitHub (Oct 11, 2025).

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

  1. Login Anonymously
  2. Login with Phone Number

Current vs. Expected behavior

onLinkAccount not called

What version of Better Auth are you using?

1.3.27

System info

Not Needed

Which area(s) are affected? (Select all that apply)

Backend

Auth config (if applicable)

import { betterAuth } from "better-auth"
export const auth = betterAuth({
  emailAndPassword: {  
    enabled: true
  },
});

Additional context

|| ctx.path.startsWith("/phone-number/verify"); needs to be added to line 196 in better-auth/src/plugins/anonymous/index.ts

This fixed the issue.

Originally created by @SamJbori on GitHub (Oct 11, 2025). ### Is this suited for github? - [ ] Yes, this is suited for github ### To Reproduce 1. Login Anonymously 2. Login with Phone Number ### Current vs. Expected behavior onLinkAccount not called ### What version of Better Auth are you using? 1.3.27 ### System info ```bash Not Needed ``` ### Which area(s) are affected? (Select all that apply) Backend ### Auth config (if applicable) ```typescript import { betterAuth } from "better-auth" export const auth = betterAuth({ emailAndPassword: { enabled: true }, }); ``` ### Additional context `|| ctx.path.startsWith("/phone-number/verify");` needs to be added to line `196` in `better-auth/src/plugins/anonymous/index.ts` This fixed the issue.
GiteaMirror added the bug label 2026-03-13 09:27:30 -05:00
Author
Owner

@SamJbori commented on GitHub (Oct 21, 2025):

This issue wasn't resolved in 1.3.28, any update on the ETA?

@SamJbori commented on GitHub (Oct 21, 2025): This issue wasn't resolved in `1.3.28`, any update on the ETA?
Author
Owner

@SamJbori commented on GitHub (Oct 23, 2025):

@Bekacru , Kindly can I get an ETA on the bug fix release, I am currently on 1.3.29 and it's not there yet, I hate to open another issue to get a response on a bug that is technically still open and prematurely closed

@SamJbori commented on GitHub (Oct 23, 2025): @Bekacru , Kindly can I get an ETA on the bug fix release, I am currently on `1.3.29` and it's not there yet, I hate to open another issue to get a response on a bug that is technically still open and prematurely closed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#2103