- Node.js version: v16.19.0
- NPM version: n/a
- Strapi version: 4.10.6
- Database: PostgreSQL
- Operating system: MacOS 13.2.1
- Language: Typescript
Greetings, Strapi community!
I am facing with issued when trying to receive the callback response with auth0.
What actually happen:
after receiving result after login, I need send callback function with my code (token and other data).
const res = await fetch(
`${process.env.NEXT_PUBLIC_API}/api/connect/auth0/callback?${tokenQuery}`,
What i got:
Response {type: 'cors', url: 'http://localhost:1337/?error=Grant%3A%20missing%20session%20or%20misconfigured%20provider', redirected: true, status: 200, ok: true, ā¦}
My package.json:
{
"name": "strapi-auth-api",
"private": true,
"version": "0.1.0",
"description": "A Strapi application",
"scripts": {
"develop": "strapi develop",
"start": "strapi start",
"build": "strapi build",
"strapi": "strapi"
},
"devDependencies": {},
"dependencies": {
"@strapi/strapi": "4.10.6",
"@strapi/plugin-users-permissions": "4.10.6",
"@strapi/plugin-i18n": "4.10.6",
"pg": "8.8.0"
},
"author": {
"name": "A Strapi developer"
},
"strapi": {
"uuid": "33461711-e165-49d8-806b-b3ed84152210"
},
"engines": {
"node": ">=14.19.1 <=18.x.x",
"npm": ">=6.0.0"
},
"license": "MIT"
}