auth-kit/next not working with next js 15 #1932
Unanswered
SalikaAnsari
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
my store
import createStore from 'react-auth-kit/createStore';
import { refresh } from '@/components/login/refresh';
import { AUTH_NAME } from './libs/constants';
export const store = createStore({
authName:AUTH_NAME,
authType:'cookie',
cookieDomain: 'localhost',
cookieSecure: true,
refresh: refresh
});
my provider.tsx
"use client"; //
import { store } from "@/store";
import React from "react";
import AuthProvider from "react-auth-kit/AuthProvider";
const Providers = ({ children }: { children: React.ReactNode }) => {
return {children};
};
export default Providers;
my layout.tsx
{children}I am using auth-kit/next in my Next.js 15.0.4 project, but I am facing an issue where cookies are not being saved as expected.
Beta Was this translation helpful? Give feedback.
All reactions