Skip to content
Snippets Groups Projects
Commit bcd40673 authored by Jono Wenger's avatar Jono Wenger
Browse files

Add GetOrInitPassword and ChangeExternalPassword to javascript side

parent bdd0bd5d
Branches
Tags
1 merge request!60Revert "Fail a test to be sure it works"
......@@ -32,6 +32,11 @@ func main() {
fmt.Println("Starting xxDK WebAssembly bindings.")
fmt.Printf("Client version %s\n", bindings.GetVersion())
// creds/password.go
js.Global().Set("GetOrInitPassword", js.FuncOf(creds.GetOrInitJS))
js.Global().Set("ChangeExternalPassword",
js.FuncOf(creds.ChangeExternalPasswordJS))
// utils/array.go
js.Global().Set("Uint8ArrayToBase64", js.FuncOf(utils.Uint8ArrayToBase64))
js.Global().Set("Base64ToUint8Array", js.FuncOf(utils.Base64ToUint8Array))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment