scottwbk
KKinde
•Created by scottwbk on 3/5/2025 in #💻┃support
Playwright based authentication errors - in vercel preview environment
some more info. If I run on localhost, pointing to a vercel preview, I now see
Access to fetch at 'https://flowt-dev.us.kinde.com/oauth2/auth?state=767b51728f61f23f0d1795e814e3&client_id=4b94e600b5d54382bb2c8ed6845f4dd4&redirect_uri=https%3A%2F%2Fflowt-by77214to-flowt.vercel.app%2Fapi%2Fauth%2Fkinde_callback&response_type=code&scope=openid+profile+email+offline' (redirected from 'https://flowt-by77214to-flowt.vercel.app/dashboard?_rsc=1ld0r') from origin 'https://flowt-by77214to-flowt.vercel.app' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
5 replies
KKinde
•Created by scottwbk on 3/5/2025 in #💻┃support
Playwright based authentication errors - in vercel preview environment
1. "@kinde-oss/kinde-auth-nextjs": "2.5.1"
2. Only in the vercel preview. Works fine on my local machine with the same env vars
3. Auth works fine with a human logging in
4. the only thing I can see that was customized is our middleware
```
import { withAuth } from '@kinde-oss/kinde-auth-nextjs/middleware';
import type { NextRequest } from 'next/server';
export default withAuth(
async function middleware(_req: NextRequest) { },
{
publicPaths: [
'/',
'/api/stripe-events',
],
},
);
export const config = {
matcher: [
'/((?!_next|[^?]\.(?:html?|css|js(?!on)|jpe?g|webp|png|gif|svg|ttf|woff2?|ico|csv|docx?|xlsx?|zip|webmanifest)).)',
],
};
Note: I tried to upgrade to 2.5.3, but get an error in unit tests
Error: Cannot find module 'D:...\node_modules.pnpm@kinde-oss+kinde-auth-nextj_14a465beb458173cca08b2b9740b9cfc\node_modules\next\headers' imported from D:...\node_modules.pnpm@kinde-oss+kinde-auth-nextj_14a465beb458173cca08b2b9740b9cfc\node_modules@kinde-oss\kinde-auth-nextjs\dist\server\index.js
5 replies
KKinde
•Created by scottwbk on 1/13/2025 in #💻┃support
Import users via CSV import hangs
Update - I cancelled the import, but I see the users have been imported. This looks to be Kinde UI bug
3 replies