addie-js 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- package/addie.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,9 +10,7 @@ import addie from 'addie-js';
|
|
|
10
10
|
const saveKeys = (keys) => { /* handle persisting keys here */ };
|
|
11
11
|
const getKeys = () => { /* return keys here. Can be async */ };
|
|
12
12
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
const uuid = await addie.createUser(stateHash, saveKeys, getKeys);
|
|
13
|
+
const uuid = await addie.createUser(saveKeys, getKeys);
|
|
16
14
|
|
|
17
15
|
// unimplemented const updatedUser = await addie.addProcessorAccount(uuid, /* processorInfo - there is a reference stripe implementation in the repo, but not quite ready for public release yet */);
|
|
18
16
|
|
package/addie.js
CHANGED
|
@@ -33,7 +33,8 @@ const addie = {
|
|
|
33
33
|
baseURL: 'https://dev.addie.allyabase.com/',
|
|
34
34
|
|
|
35
35
|
createUser: async (saveKeys, getKeys) => {
|
|
36
|
-
const keys = await sessionless.generateKeys(saveKeys, getKeys)
|
|
36
|
+
const keys = (await getKeys()) || (await sessionless.generateKeys(saveKeys, getKeys))
|
|
37
|
+
sessionless.getKeys = getKeys;
|
|
37
38
|
|
|
38
39
|
const payload = {
|
|
39
40
|
timestamp: new Date().getTime() + '',
|