All Questions
Tagged with authentication reactjs
2,111
questions
0
votes
0
answers
9
views
Can any one explain how i can manage context with tanstack router?
AuthcontextProvider.tsx
import {ReactNode, useEffect, useState} from 'react';
import {AuthContext} from './AuthContext';
import {Token, User} from '@/types';
import {QUERY_KEYS} from '@/lib/react-...
0
votes
0
answers
11
views
Blank page when protecting route with react router [duplicate]
I have followed several guides and questions on stack overflow with no luck.
I want to set up protected routes, so going to example /highscores would redirect user to /login if not signed in.
...
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 ...
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 ...
0
votes
0
answers
18
views
How to make extra data available to session in next-auth
we are doing the auth on our website using next-auth. When the user is logged in, we receive the access token and the expiration date. Then, according to our BE model, we need to make other calls to ...
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 ...
0
votes
1
answer
34
views
Unable to Sign In with Keycloak using NextAuth in Next.js Application [next-auth][error][SIGNIN_OAUTH_ERROR]
I'm trying to set up authentication for my Next.js application using NextAuth and Keycloak. Despite following the documentation, I'm encountering an issue when attempting to sign in with Keycloak.
My ...
-1
votes
2
answers
26
views
Passport JS + React application internal 500 errro
I am creating a general chat application with react, and am stuck while trying to authenticate a user. The axios post request raises a 500 error that I cannot track anywhere. When I put in correct ...
1
vote
0
answers
36
views
NextJS redirect with cookies
I'm building an app using NextJS (app router system). I'm building the sign-up workflow, using NextAuth, and Resend. I'm using the newly available Resend provider from NextAuth.
Here is the workflow ...
0
votes
0
answers
15
views
Clerk expo redirecting me to browser, instead of showing me list of google accounts in a popup
When it comes to authentication in react native, there's no better way than using clerk in expo, as always, its my favorite. but coming to social login with google, in clerk in expo, it was ...
0
votes
1
answer
33
views
logto.io | get a jwt token on login to access my api
I'm using logto.io to manage my app authentication with React.
When I only authenticate using the frontend, everything is fine as described on the docs.
Let's say this is my AuthProvider component, ...
0
votes
0
answers
87
views
The edge runtime does not support Node.js 'crypto' module error while adding mongoClient in Auth Js (Next js)
I have implemented auth js in the next js project. I also split the config like, auth.js and auth.config.js.
Now for the signIn functionality, if I add mongoClient to my auth.config.js, I am getting ...
1
vote
0
answers
16
views
Authenticating user on React frontend, against Django backend user groups using JWT
Having issues authenticating a user from React frontend, to Django backend using JWT Tokens.
I have a Django instance with check_auth view in views.py:
@csrf_exempt
@login_required
def check_auth(...
1
vote
3
answers
73
views
I want to make refresh token API call every 60 minutes
I currently have a refresh token API call every 60 minutes,
Here is my condition:
**const expires_in = 3600 //This is 3600s comes from auth api
if (refreshToken && expires_in * 1000 > ...
0
votes
1
answer
26
views
What kind of safety concerns are there with JWT tokens when sending a request from a website? [closed]
So I have a react app that makes requests to a content management backend for content. It can also post content to that backend. To secure it, I require JWT authentication in order for a request to ...