save seed backup at sign up
This commit is contained in:
parent
0a88f19f75
commit
d75bf2708e
1 changed files with 8 additions and 1 deletions
|
|
@ -14,6 +14,7 @@ const auth = require("../services/auth/auth");
|
||||||
const FS = require("../utils/fs");
|
const FS = require("../utils/fs");
|
||||||
const LightningServices = require("../utils/lightningServices");
|
const LightningServices = require("../utils/lightningServices");
|
||||||
const GunDB = require("../services/gunDB/Mediator");
|
const GunDB = require("../services/gunDB/Mediator");
|
||||||
|
const GunActions = require("../services/gunDB/contact-api/actions")
|
||||||
const { unprotectedRoutes } = require("../utils/protectedRoutes");
|
const { unprotectedRoutes } = require("../utils/protectedRoutes");
|
||||||
|
|
||||||
const DEFAULT_MAX_NUM_ROUTES_TO_QUERY = 10;
|
const DEFAULT_MAX_NUM_ROUTES_TO_QUERY = 10;
|
||||||
|
|
@ -440,7 +441,13 @@ module.exports = (
|
||||||
|
|
||||||
// Register user before creating wallet
|
// Register user before creating wallet
|
||||||
const publicKey = await GunDB.register(alias, password);
|
const publicKey = await GunDB.register(alias, password);
|
||||||
|
|
||||||
|
await GunActions.saveSeedBackup(
|
||||||
|
mnemonicPhrase,
|
||||||
|
GunDB.getUser(),
|
||||||
|
GunDB.mySEA
|
||||||
|
)
|
||||||
|
|
||||||
walletUnlocker.initWallet(
|
walletUnlocker.initWallet(
|
||||||
walletArgs,
|
walletArgs,
|
||||||
async (initWalletErr, initWalletResponse) => {
|
async (initWalletErr, initWalletResponse) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue