-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
[Next 13] 'window' is not defined #19
Comments
I'm not very familiar with nextjs and your project. I can just say that |
...that goes for all the |
vercel/next.js#47028 (comment) To solve it on Next project, there's need for a useState and a useEffect, adding complexity to codebase to every component where this lib is called. Can't this lib check for |
Without window, the lib obviously cannot check if WebAuthn is available for that browser. It doesn't even make sense. |
It happens in a Next 13 page (
app
folder) marked as a client component withuse client
directive.Imported as:
import * as webauthn from "@passwordless-id/webauthn";
Used as:
{webauthn.client.isAvailable() && "available"}
The text was updated successfully, but these errors were encountered: