Skip to content

🐛 Bug Report: PENDING_EMAIL_VERIFICATION_USER_ID is not deleting after email verification #587

@yshplsngh

Description

@yshplsngh

📜 Description

When you sign up, a cookie called PENDING_EMAIL_VERIFICATION_USER_ID is set. And should be removed after successfully email verification.
Go to : /job-board/src/app/(auth)/verify-email/[token]/page.tsx

verifyEmail is also returning a default 500 error and then page redirect to sign-in endpoint.

👟 Reproduction steps

  1. Try to sign up and verify a new User

👍 Expected behavior

It should delete PENDING_EMAIL_VERIFICATION_USER_ID cookie after verfication

👎 Actual Behavior with Screenshots

  1. Go to /job-board/src/app/(auth)/verify-email/[token]/page.tsx
  2. console res variable, then you should be able to see 500 error
    { name: 'Internal server error', message: "We're sorry for the inconvenience. Please report this issue to our support team ", code: 500, status: false }
  3. And cookie did not delete

OS name

Linux

browser name

Firefox

npm version

10.8.1

node version

22.4.0

📃 Provide any additional context for the Bug.

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to submit PR?

Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions