-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
impersonation code breaks the build #80
Comments
I'm unable to reproduce with both Next.js 14.2.5 and authkit-next 0.9.0. Could you provide more details or an example repo that shows the issue? |
I'm having this same problem. I need to use signOut() in an onClick event handler (outside of a form) and I haven't been able to get it to work. Some minimal code that throws this error for me: "use client"
import { signOut } from "@workos-inc/authkit-nextjs";
export default async function Example() {
return (
<button onClick={async () => await signOut()}>Sign out</button>
);
} The error still occurs if I extract the signOut call to a server action in a separate file and import it in my client component. |
Hi all, we've found that the issue only appears in client components. We're working on a fix, but in the meanwhile for client components you should be able to treat "use client"
import { signOut } from "@workos-inc/authkit-nextjs";
export default async function Example() {
return (
<button onClick={signOut}>Sign out</button>
);
}
|
is there a solution for this yet? this means a bunch of client side function like withAuth don't work either... that's pretty important. |
using Next.js (14.2.5) + "@workos-inc/authkit-nextjs": "^0.9.0"
i dont use the impersonation component but it still breaks
The text was updated successfully, but these errors were encountered: