System Information
Strapi Version : 4
Operating System : mac/linux
Database : mysql
Node Version : 14.18
NPM Version : 6.14
Yarn Version : 1.22
V4 OAuth Google provider isn’t working for me. Did the path change?
Login Btn => GET http://localhost:1337/connect/google
Returns
{"data":null,"error":{"status":404,"name":"NotFoundError","message":"Not Found","details":{}}}
Other providers are oddly showing this as the config
Adding /api in front of the path seems to be the right direction. But now I get this error
[2021-12-04 15:57:45.466] error: Grant: mount session middleware first
BadRequestError: Grant: mount session middleware first
at Object.throw (/Users/andrew/Projects/rise/tmp/test-four/node_modules/koa/lib/context.js:97:11)
at app (/Users/andrew/Projects/rise/tmp/test-four/node_modules/grant/lib/handler/koa-2.js:25:16)
I experience the same issue. Currently on v4.0.2
Easaaa
January 10, 2022, 4:22pm
4
I have the same problem, but I found this updated documentation https://docs.strapi.io/developer-docs/latest/plugins/users-permissions.html#providers . Btw I’m going to try with ngrok because I still have the “Grant: mount session middleware first” error.
hey, i’m also following the guide Roles & Permissions - Strapi Developer Docs .
i als o get that grant error when going to http://localhost:1337/api/connect/discord
{
“data”: null,
“error”: {
“status”: 400,
“name”: “BadRequestError”,
“message”: “Grant: mount session middleware first”
}
}
i’ve read the guide 10 times over and cant figure out whats going wrong
i solved it by updating from strapi 4.0.5 to 4.07 Migrate from 4.0.5 to 4.0.6 - Strapi Developer Docs
still very annoying to have to do this would have been easier if the default strapi installation would have installed a more up to date version
“npx create-strapi-app@latest my-project” is what i used