Skip to content

Receiving Twice Email Verification Codes During Sign-In with Clerk #4324

@Shinchan3102

Description

@Shinchan3102

Preliminary Checks

Reproduction

https://github.com/Shinchan3102/clerk-auth-next

Publishable key

pk_test_bWFpbi10b21jYXQtMzQuY2xlcmsuYWNjb3VudHMuZGV2JA

Description

Description:

  • I am using only email and email verifcation code for authentication purpose in my app but while signin with email it is sending the email verification code twice to my email each time but it works good while signup process. It is happening on locally and sometimes on production too.
  • On refreshing the page, while entering otp even if the resend option is still showing the timeline, it resets itself from the start and sends the otp to the email.
    Can anybody help me with this issue?

Screenshots:

  • Two time api call for email verification of clicking on continue
    {B0870476-4D7B-49DF-8D20-33DCE59A63C1}
  • Two OTPs are received while signin each time
    {DC404854-DD9A-4496-A055-D8274375BBBB}

Environment

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 AMD Ryzen 5 5600H with Radeon Graphics
    Memory: 886.65 MB / 7.35 GB
  Binaries:
    Node: 20.9.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 10.8.1 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.7.0 - ~\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    @clerk/nextjs: ^5.7.2 => 5.7.2
    @types/node: ^20 => 20.16.11
    @types/react: ^18 => 18.3.11
    @types/react-dom: ^18 => 18.3.1
    eslint: ^8 => 8.57.1
    eslint-config-next: 14.2.15 => 14.2.15
    next: 14.2.15 => 14.2.15
    postcss: ^8 => 8.4.47
    react: ^18 => 18.3.1
    react-dom: ^18 => 18.3.1
    tailwindcss: ^3.4.1 => 3.4.13
    typescript: ^5 => 5.6.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions