You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
did every thing as in docs but could not understand this line
import WebAuthnClient from '@redwoodjs/auth/webAuthn'
when i try to import it i get the error
[plugin:vite:import-analysis] Failed to resolve import "@redwoodjs/auth/webAuthn" from "src/App.jsx". Does the file exist?
/Users/charity/Github/e-shop/web/src/App.jsx:4:27
18 | import { RedwoodApolloProvider } from "@redwoodjs/web/apollo";
19 | import { AuthProvider, useAuth } from "@redwoodjs/auth";
20 | import WebAuthnClient from "@redwoodjs/auth/webAuthn";
| ^
21 | import FatalErrorPage from "./pages/FatalErrorPage/FatalErrorPage";
22 | import Routes from "./Routes";
hey @charity1475, thanks for reporting—unfortunately it looks like some of that documentation is outdated. instead of importing it from the auth package, it should be imported from @redwoodjs/auth-dbauth-web/webAuthn.
if you use the setup command, it'll do the right thing for you: yarn rw setup auth dbAuth. just say "yes" at the webAuthn prompt.
What's not working?
trying to setup rw dbAuth using both username pass and WebAuthn , https://redwoodjs.com/docs/auth/dbauth . here is my prisma types:
did every thing as in docs but could not understand this line
import WebAuthnClient from '@redwoodjs/auth/webAuthn'
when i try to import it i get the error
[plugin:vite:import-analysis] Failed to resolve import "@redwoodjs/auth/webAuthn" from "src/App.jsx". Does the file exist?
also in my generated pages :
this src/auth was not generated
Self-hosted Authentication (dbAuth) | RedwoodJS Docs
Redwood's own dbAuth provides several benefits:
How do we reproduce the bug?
https://redwoodjs.com/docs/auth/dbauth
What's your environment? (If it applies)
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: