I am having an issue getting token when creating a project and this function
export const fetchToken = async () => {
try {
const response = await fetch(${serverUrl}/api/auth/token);
return response.json();
} catch (error) {
throw error;
}
}
is returning a response of 400 - Bad request and on my network tab during project creation the response i get from token access is
Error: This action with HTTP GET is not supported by NextAuth.js
I am having an issue getting token when creating a project and this function export const fetchToken = async () => { try { const response = await fetch(
${serverUrl}/api/auth/token
); return response.json(); } catch (error) { throw error; } }is returning a response of 400 - Bad request and on my network tab during project creation the response i get from token access is Error: This action with HTTP GET is not supported by NextAuth.js
the error at my console is actions.ts:15 GET http://localhost:3000/api/auth/token 400 (Bad Request)