diff --git a/creds/password_test.go b/creds/password_test.go index 822746e8c87020175528227cf42131e9a63509d7..ff9c71c5c3935c19d4fd4e8122978ce1c45a162d 100644 --- a/creds/password_test.go +++ b/creds/password_test.go @@ -78,6 +78,7 @@ func Test_changeExternalPassword(t *testing.T) { // Tests that verifyPassword returns true for a valid password and false for an // invalid password func Test_verifyPassword(t *testing.T) { + utils.GetLocalStorage().Clear() externalPassword := "myPassword" if _, err := getOrInit(externalPassword); err != nil { diff --git a/main.go b/main.go index 06bbe7231e88aab9a80753afd2489216b15fc22d..5da0d86b431568852c5f5f45cf2c88dc0af8b856 100644 --- a/main.go +++ b/main.go @@ -57,6 +57,7 @@ func main() { // wasm/channels.go js.Global().Set("GenerateChannelIdentity", js.FuncOf(wasm.GenerateChannelIdentity)) + js.Global().Set("ConstructIdentity", js.FuncOf(wasm.ConstructIdentity)) js.Global().Set("ImportPrivateIdentity", js.FuncOf(wasm.ImportPrivateIdentity)) js.Global().Set("GetPublicChannelIdentity",