Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser version does not work because of undefined SRP6JavascriptClientSessionSHA256 #17

Open
beastybeast opened this issue Aug 24, 2024 · 0 comments

Comments

@beastybeast
Copy link

beastybeast commented Aug 24, 2024

Upgraded from 1.5.2 to 1.6.0 (javascript) to use directly in the browser and the browser complain about missing definition of SRP6JavascriptClientSessionSHA256 and I can see that the function is wrapped into some node.js code.

I used the npm and browserify path as described (why it is not possible for many libraries just to download the needed browser file makes my head spin)

It looks as if at the end of the file that the srpClientFactory is never called and because of this SRP6JavascriptClientSessionSHA256 is never defined.

I can also see that this SRP6JavascriptClientSessionSHA256 function is defined directly in the old version.

NB: "module.exports = function srpClientFactory (N_base10, g_base10, k_base16)"

/Benny

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant