Skip to main content

All Questions

0 votes
0 answers
22 views

Why won't my next.js credentials login with email and password work while my google provider authentication does?

I am trying to make a login page with Next Auth V4, and I have followed some instructions online that seems to work well for the google provider which works, but my "credentials" email and ...
The Elina's user avatar
0 votes
0 answers
17 views

Retrieving cookie in service (API functions) folder in NextJS 14

I am using NextJS I have been struggled with this problem for quite some time. Essentially, I want to sepearte logic and UI in my project. I want to only paste in the necessary parameters (e.g. ...
Huy Nguyen Quang's user avatar
0 votes
2 answers
67 views

Optimizing User Data Fetching in Next.js: Best Practices and Alternatives

I have a project in Next.js and I am using server actions. However, I am facing a problem: I am fetching user data separately on each page so that I can use it on the respective pages. Is there a way ...
abuzain's user avatar
  • 494
0 votes
0 answers
10 views

having trouble extending the user session class in next-auth 5.0.0-beta.15

im using next-auth 5.0.0-beta.15 for my authentication i tried just returning the user through credentials, i tried making some changes to the auth.config.ts file but nothing worked auth.ts //imports ...
Arch Cion's user avatar
2 votes
1 answer
222 views

User Getting Logged out when ever I reload page

I am building a nextjs 13 admin dashboard, I only have one issue that whenever user reloads the page it get redirected to login page, when inspect the developer mode, cookies is still present in ...
Diven Khatri's user avatar
0 votes
0 answers
31 views

Next.JS Middleware routing

I'm checking for the role and logged-in users to redirect them but it seems the middleware is not working correctly this is my middleware.ts : import { NextResponse } from "next/server"; ...
Habib's user avatar
  • 1
0 votes
0 answers
29 views

How to send cookie to next js middleware(static page)?

I have a static authorization page. After successful authorization I update the cookie and redirect to /profile. const handleConfirmSuccess = (data: string) => { AuthService.otp({ ...
Артур Нахатакян's user avatar
1 vote
0 answers
270 views

Refresh auth token in nextjs 13 with custom backend

I'm struggling with refreshing the access token. I have a custom BE (in Django) which handles authentication but in the FE, since I can only update cookies on server actions or route handlers. When I ...
Luc's user avatar
  • 412
1 vote
0 answers
34 views

Express-Session cookie updates not being persisted

I have an ExpressJS API and NextJS UI. I'm trying to generate session tokens. I'm able to generate the token and I see it saved on my MongoDB session storage, but when I try to re-use that session ...
XXX's user avatar
  • 11
0 votes
0 answers
436 views

Supabase and Next.js - How to make change password page accessible only to authenticated users

I have a next.js application and I am following the documentation for allowing users to reset passwords. So far, I built the password reset page and made it publicly accessible with a form asking for ...
AbedDoesCode's user avatar
0 votes
0 answers
154 views

next-auth email provider authorize type error

i am completely new to Next.js. I had previously worked on the frontend with Next.js but this is my first time working on the backend and functionality. I have been stuck for about 4 hours on how to ...
Muhammad Usman's user avatar
0 votes
2 answers
1k views

user Button from clerk/nextjs is not working when i changes screen size to mobile view or use my web app in mobile

"UserButton from @clerk/nextjs closes immediately on mobile view" Body: I'm encountering an issue with the UserButton component from @clerk/nextjs in my Next.js application. When I'm using ...
priyanshu singh's user avatar
0 votes
1 answer
337 views

How to sync web app authentication with chrome extension

I have been working on a project that involves users signing up on my main web app. The web app is created using Nextjs 14 with the new app router support and I used the next-auth ( Which saves user ...
Ernie's user avatar
  • 11
0 votes
0 answers
106 views

how to store access token in http-only cookies with app router in next js 14 api

hi there im working on next js app and i've created login api. In that api im creating jwt token and i want to set this token to http-only cookies and send json response to user that logged in ...
kamran bhatti's user avatar
0 votes
1 answer
78 views

NextAuth and IPFS error when hosting on app.fleek.co

I have a NextJS13 project with a dashboard. I am using NextAuth.js for authentication (credentials provider) with a django backend. When working locally, I am able to successfully sign in and out of ...
Rmasona's user avatar

15 30 50 per page
1
2 3 4 5