Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
-1 votes
0 answers
20 views

req.headers.authorization is undefined

So I've been trying to implement JWT authorization for my project, and there's this specific step that I've been stuck for hours... So I have a middleware setup to try and verify the access token ...
BabyBeginner's user avatar
0 votes
0 answers
15 views

Why username from profile disappear of the refresh page. Node.js

I did login and registration with node.js. Everything is working, and when I login, I can see a name of the user, but when I refresh the page, the name disappears. What I did wrong, please can you ...
Elena's user avatar
  • 1
-1 votes
0 answers
35 views

Can't access data from sqlite db with js

I'm trying js from the first time and want to make a website, I need to get data from a users database to verify them but i can't figure out how const sqlite3 = require('sqlite3').verbose(); var sql; ...
Manos's user avatar
  • 1
0 votes
0 answers
25 views

How to automatically refresh, and reuse access tokens using nextJS app router and Auth0?

I am working with a Next.js frontend and an Express backend. I need a solution to automatically create and reuse a user’s access token until it expires. I believe there might be a way to achieve this ...
Kevin's user avatar
  • 51
0 votes
1 answer
22 views

Automatically log in to a third-party web app that uses SSO

I have a web application (React + Node.js) that redirects users to a third-party web app, where they currently need to log in manually. I want to enable automatic login to this third-party web app so ...
Stacey Kirby's user avatar
1 vote
0 answers
17 views

How to implement login and registration module in node and react with passportjs

I want to know like there is a three pages login registration and home now I want like before signup or sign in user should not be able to access home page now how to implement that like normally and ...
techguy's user avatar
  • 11
0 votes
1 answer
39 views

Syntax on accessing authorization header of an API request in node

const authHeader = req.headers["authorization"]; Apologies if this question may seem basic, but I am curious why we use ["authorization"] and not just .authorization I did some ...
Taran's user avatar
  • 1
-1 votes
0 answers
21 views

How to Properly Use Cookies for Authentication in a Web Application?

I'm working on a web application and need guidance on using cookies for authentication. Note: I am a student so I might be missing some obvious points so please point them out if there are any. I ...
Aditya's user avatar
  • 29
0 votes
1 answer
19 views

Login Redirection Issue in Express.js with Passport Authentication

I am developing an Express.js application and facing a persistent issue with user authentication. Despite successful user registration and confirmed entries in the database, the login process does not ...
Ricardo Luna's user avatar
0 votes
0 answers
34 views

Hashing password using bcrypt and node js

I'm working on a Node.js project that involves user authentication using JWT and bcrypt. I'm able to register a user successfully, but when I try to log in with the same password, I get a password ...
DJABRI MAROUA's user avatar
0 votes
0 answers
24 views

API authentication and authorization with auto login via embedded script

Overview I am developing an api (a web service, REST API) and my web service is hosted on, say web-apis.com Assuming I have clients/customers with respective websites customer-1 (website-1.com), ...
crazy innovator's user avatar
0 votes
1 answer
28 views

What If Session Expires While User Is Still On The Website

Suppose that there are 5 minutes left for the session to expire when user enters the website.Every action that user will make after 5 minutes will be rejected by server if it requires you to login and ...
Tunahan Keklik's user avatar
0 votes
1 answer
43 views

Remix run: Authentication succeeds on validation failures

I am trying to validate the login information. If the login fields are empty or have wrong information, I should be able to return the user back to login with an error displayed beneath fields. ...
Ahmed's user avatar
  • 3,163
0 votes
0 answers
26 views

trying to submit a form, and it's returning error

I'm trying to submit this from, but it is returning invalid password, I trim()'d the data, both for the registration method const Auth = require('../models/AuthModel'); const jwt = require('...
Joel Somtochukwu's user avatar
0 votes
0 answers
16 views

Specifing between Json web tokens and express session for authentication

Between JSON Web Tokens and express session, which is the best? I'm just getting started with node.js. This is my method for creating a new user, so should I use express session or JWT to save the ...
Joel Somtochukwu's user avatar

15 30 50 per page
1
2 3 4 5
196