src/store.js
// like createDoc, but creates a document with credentials that can be checked by userLogin()
like createDoc, but creates a document with credentials that can be checked by userLogin()
like createDoc but creates a document with credentials that can be checked by userLogin ()
async userCreate(credentials, user) {
    let payload = { credentials, user };
    if (await this.loginExists(user.login)) {
      return false; 
    }
    await this.userCreateTree(user.uid);
    await io.filePut(this.userFolder(user.uid, ''), USERMETA, JSON.stringify(payload, null, 2));
    await this.userLink(user.login, user.uid);
    return payload; 
  }
async userCreate ( credentials , user ) { let payload = { credentials , user } ; if ( await this . loginExists ( user . login ) ) { return false ; } await this . userCreateTree ( user . uid ) ; await io . filePut ( this . userFolder ( user . uid , '' ) , USERMETA , JSON . stringify ( payload , null , 2 ) ) ; await this . userLink ( user . login , user . uid ) ; return payload ; }
like createDoc, but creates a document with credentials that can be checked by userLogin()
like createDoc but creates a document with credentials that can be checked by userLogin ()
// signals route handler to 409 it. // the only really important one?