hagopj13 / hagopj13/node-express-boilerplate

Error: No auth token when trying to send a verification email

Open
#163 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.7k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

after registering and login successfully, when i tried to send a verification email link, i can't because i must authenticate even though i have signed up and when i try to protect a route with the auth() middleware i get an Error: No auth token at JwtStrategy.authenticate

![Screen Shot 2021-11-21 at 8 46 16 PM](https://user-images.githubusercontent.com/19413521/142776702-abfaf240-befe-4e2a-8ad6-15bdcfc7392d.png)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the registration, login, verification-email request, and protected-route flows described in the issue, then trace the auth() middleware and JwtStrategy.authenticate path. Done means authenticated users can request a verification email and access protected routes without the reported “No auth token” error.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, javascript, mongodb, node.js
Domain
api, authentication, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.