Closed wiezmankimchi closed 1 year ago
Hey @wiezmankimchi, you're right. Now that we've fully decoupled the auth providers, it should actually be:
import { hashPassword } from '@redwoodjs/auth-dbauth-api
You can make that change if you're still up for it, but no pressure.
@jtoar I believe the seed template in main has already been updated.
Perhaps this is a release notes item to update seeds (or use of this import?).
@dthyresson yeah you're right—and good call, definitely belongs in the release notes.
I got this wrong—the existing comment doesn't look right to me.
Confirming that @redwoodjs/api
is wrong
Here's the proper import
@wiezmankimchi Do you want to create a PR with the fix, or should I do it? I don't mind either way, so totally up to you 🙂
Summary
The current remark in the
seed.ts
template is:// import { hashPassword } from '@redwoodjs/auth-providers-api'
and it should changed to:// import { hashPassword } from '@redwoodjs/api'
.as if implemented as is, you will get an error: `Error in script: Cannot find module '@redwoodjs/auth-providers-api' Require stack:
Motivation
corrected template
Detailed proposal
remove
// import { hashPassword } from '@redwoodjs/auth-providers-api'
add// import { hashPassword } from '@redwoodjs/api'
Are you interested in working on this?