Welcome to the Kinde community.

A
A
A
M
T

Manual app key passing to handleAuth in kinde-auth-nextjs

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,
});

O
M
8 comments

Hey ,
Daniel is based in the UK and not online yet.
Ill see if I can get someone to answer this in the meantime.

, Are you able to elaborate on your use-case for this?

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

Gotcha.
Let me speak to my team on this and get back to you.

Hey ,
Just checking are you still blocked on this?

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?

Yes, getting access token for a given email is an important one we need.

Thanks for the reply Misha.
Lets continue the conversation on our other related thread in our slack connect channel.

Add a reply
Sign up and join the conversation on Slack
Join