Manually passing app keys to handleAuth() in @kinde-oss/kinde-auth-nextjs
Any chance to allow us to pass the client id and the client secret manually?
// app/api/auth/[kindeAuth]/route.ts import { handleAuth } from "@kinde-oss/kinde-auth-nextjs/server"; export const GET = handleAuth({ clientId: process.env.KINDE_CLIENT_ID_CYPRESS, clientSecret: process.env.KINDE_CLIENT_SECRET_CYPRESS, });
Hey ,
Daniel is based in the UK and not online yet.
Ill see if I can get someone to answer this in the meantime.
I’m trying to figure out how run cypress tests with Kinde auth.
One idea I saw was mentioned on Discord is to use the Email+Password auth, so I created a “Cypress” application in Kinde for this purpose and enabled the Email+Password auth in it.
Now, I need to be able to build my app using the “Cypress” application client id and client secret, which are specified in .env.local
as KINDE_CLIENT_ID_CYPRESS
and KINDE_CLIENT_SECRET_CYPRESS
I believe you solved this but you have other issues wiht your e2e tests, e.g. get access token for a particular user email.
Is this right?
Thanks for the reply Misha.
Lets continue the conversation on our other related thread in our slack connect channel.