Skip to content

Commit

Permalink
Make full flow work when running in Chrome extension context (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
lanedirt committed Jan 23, 2025
1 parent 378fb0b commit 536b482
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion browser-extensions/chrome/src/services/SrpService.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class SrpService {
mem: settings.MemorySize,
parallelism: settings.DegreeOfParallelism,
hashLen: 32,
type: argon2.ArgonType.Argon2id,
type: 2, // 0 = Argon2d, 1 = Argon2i, 2 = Argon2id
});

return hash.hashHex.toUpperCase();
Expand Down
4 changes: 4 additions & 0 deletions browser-extensions/chrome/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ export default defineConfig({
{
src: 'src/images/*',
dest: 'images'
},
{
src: 'node_modules/argon2-browser/dist/argon2.wasm',
dest: 'src' // Copy to the root of the dist folder
}
]
}),
Expand Down

0 comments on commit 536b482

Please sign in to comment.