pilcrowonpaper / oslo

A collection of auth-related utilities
https://oslo.js.org
MIT License
1.06k stars 35 forks source link

Oslo/password doesn't work using sst in aws lambda #73

Closed rifkyputra closed 4 months ago

rifkyputra commented 5 months ago
image

can't deploy using sst deploy neither sst dev

here's my code

import { Argon2id } from 'oslo/password'

const argon2id = new Argon2id()

export async function argon2Hash(password: string): Promise<string> {
  return await argon2id.hash(password)
}

export async function argon2Verify(password: string, hashedPassword: string): Promise<boolean> {
  return await argon2id.verify(hashedPassword, password)
}
directormac commented 5 months ago

Refer to #74, i think we are all having same issues. there is a fix there i posted also at discord

pilcrowonpaper commented 4 months ago

I think duplicate of #74 and the fix is in the issue/comment. Unfortunately little Oslo can do here since it's a bundler thing