WWWillems
WWWillems
WWasp-lang
Created by WWWillems on 8/16/2024 in #🙋questions
Error: Cannot find module '@node-rs/argon2-wasm32-wasi' when deploying to fly.io
yes probably, I'm developing a lot of projects in parallel, some use npm, some use yarn so I must've made a mistake. 😓
30 replies
WWasp-lang
Created by WWWillems on 8/16/2024 in #🙋questions
Error: Cannot find module '@node-rs/argon2-wasm32-wasi' when deploying to fly.io
thanks!
30 replies
WWasp-lang
Created by WWWillems on 8/16/2024 in #🙋questions
Error: Cannot find module '@node-rs/argon2-wasm32-wasi' when deploying to fly.io
lol ok that seemed to fix the issue 😬 sorry for not thinking about this earlier 🤦🏽‍♂️
30 replies
WWasp-lang
Created by WWWillems on 8/16/2024 in #🙋questions
Error: Cannot find module '@node-rs/argon2-wasm32-wasi' when deploying to fly.io
Thanks! Still validating the idea so both code & graphics arent ready yet though.
30 replies
WWasp-lang
Created by WWWillems on 8/16/2024 in #🙋questions
Error: Cannot find module '@node-rs/argon2-wasm32-wasi' when deploying to fly.io
Hmz not yet, will try in a bit.
30 replies
WWasp-lang
Created by WWWillems on 8/16/2024 in #🙋questions
Error: Cannot find module '@node-rs/argon2-wasm32-wasi' when deploying to fly.io
Any luck?
30 replies
WWasp-lang
Created by WWWillems on 8/16/2024 in #🙋questions
Error: Cannot find module '@node-rs/argon2-wasm32-wasi' when deploying to fly.io
Sure np, thanks in advance for the effort!
30 replies
WWasp-lang
Created by WWWillems on 8/16/2024 in #🙋questions
Error: Cannot find module '@node-rs/argon2-wasm32-wasi' when deploying to fly.io
not sure if you need to actually run the project, but there's quite some .env vars to run it as well
30 replies
WWasp-lang
Created by WWWillems on 8/16/2024 in #🙋questions
Error: Cannot find module '@node-rs/argon2-wasm32-wasi' when deploying to fly.io
dont forget to run dev seed when setting up 😉
30 replies
WWasp-lang
Created by WWWillems on 8/16/2024 in #🙋questions
Error: Cannot find module '@node-rs/argon2-wasm32-wasi' when deploying to fly.io
sent you an invite on github
30 replies
WWasp-lang
Created by WWWillems on 8/16/2024 in #🙋questions
Error: Cannot find module '@node-rs/argon2-wasm32-wasi' when deploying to fly.io
0.14.0
30 replies
WWasp-lang
Created by WWWillems on 8/16/2024 in #🙋questions
Error: Cannot find module '@node-rs/argon2-wasm32-wasi' when deploying to fly.io
I’m building a SaaS app for teams to manage their AI prompts. Will share it soon! 😉
30 replies
WWasp-lang
Created by WWWillems on 8/16/2024 in #🙋questions
Error: Cannot find module '@node-rs/argon2-wasm32-wasi' when deploying to fly.io
Thanks, already stumbled on that thread. Quickly tried suggested fixes but ran out of time. Will try again tomorrow. Did a manual rollback for now. Hope we can resolve it quickly as i can’t deploy updates to my live app now 😢.
30 replies
WWasp-lang
Created by Álvaro P. on 3/29/2024 in #🙋questions
Best Practices for Implementing Auth System in Chrome Extension Connected to OpenSaaS
Awesome, thanks for the update 🙏
42 replies
WWasp-lang
Created by Álvaro P. on 3/29/2024 in #🙋questions
Best Practices for Implementing Auth System in Chrome Extension Connected to OpenSaaS
Also interested in implementing this feature, so would also love a rough timeline 🙂
42 replies
WWasp-lang
Created by WWWillems on 8/16/2024 in #🙋questions
Error: Cannot find module '@node-rs/argon2-wasm32-wasi' when deploying to fly.io
If I try to add the @node-rs/argon2-wasm32-wasi package manually, I'm getting an error @node-rs/argon2-wasm32-wasi@1.8.3: The CPU architecture "x64" is incompatible with this module. as I'm using Mac OSX M3.
30 replies
WWasp-lang
Created by WWWillems on 8/16/2024 in #🙋questions
Error: Cannot find module '@node-rs/argon2-wasm32-wasi' when deploying to fly.io
And the local dev build works without throwing any errors.
30 replies
WWasp-lang
Created by WWWillems on 8/16/2024 in #🙋questions
Error: Cannot find module '@node-rs/argon2-wasm32-wasi' when deploying to fly.io
I am using Wasp version 0.14.0 btw
30 replies
WWasp-lang
Created by WWWillems on 7/11/2024 in #🙋questions
Usage of getEmail
Oh right 🤦‍♂️ forgot I added the email scope to the social login myself 😬
12 replies
WWasp-lang
Created by WWWillems on 7/11/2024 in #🙋questions
Usage of getEmail
If anyone needs it, wrote my own helper 🤷‍♂️
import { type AuthUser, findUserIdentity, getEmail } from "wasp/auth";

const getUserEmail = (user: AuthUser): string => {
const emailIdentity = findUserIdentity(user, "email");
const googleIdentity = findUserIdentity(user, "google");

if (emailIdentity) {
return `${getEmail(user)}`;
}

if (googleIdentity) {
return user.email;
}

return "No auth identity found";
};

export default getUserEmail;
import { type AuthUser, findUserIdentity, getEmail } from "wasp/auth";

const getUserEmail = (user: AuthUser): string => {
const emailIdentity = findUserIdentity(user, "email");
const googleIdentity = findUserIdentity(user, "google");

if (emailIdentity) {
return `${getEmail(user)}`;
}

if (googleIdentity) {
return user.email;
}

return "No auth identity found";
};

export default getUserEmail;
12 replies