Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 tasks done
Shinchan3102 opened this issue Oct 14, 2024 · 1 comment
Open
4 tasks done
Labels
needs-triage A ticket that needs to be triaged by a team member

Comments

@Shinchan3102
Copy link

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
@Shinchan3102 Shinchan3102 added the needs-triage A ticket that needs to be triaged by a team member label Oct 14, 2024
@maximilianotaverna
Copy link

Hi same with my project
Using the Clerk SignIn and tried with and without wrapping with ClerProvider too.
import { SignIn, ClerkProvider } from "@clerk/nextjs";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage A ticket that needs to be triaged by a team member
Projects
None yet
Development

No branches or pull requests

2 participants