kodepandai / lunox

Laravel-Flavoured Nodejs Framework
https://lunox.js.org
MIT License
77 stars 8 forks source link

[lunox-auth] cannot run bcrypt on bun in --hot mode #68

Closed axmad386 closed 3 months ago

axmad386 commented 3 months ago

When run lunoxjs using bun run --hot, currently @lunoxjs/auth causing error due to bcrypt. In bun, we can use Bun.password instead to avoid this error

axmad386 commented 3 months ago

This issue is so random. Somehow --hot or --watch cannot used in Mac OS, but successfully run on linux. If you encountered the problem just run the file manually without --hot or --watch flag using bun index.ts. Atleast now @lunoxjs/auth bcrypt has been replaced by Bun.password see #69 . You must use Bun.password to hash your password when running lunox on bun environment