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 LightningServices = require("../utils/lightningServices");
|
||||
const GunDB = require("../services/gunDB/Mediator");
|
||||
const GunActions = require("../services/gunDB/contact-api/actions")
|
||||
const { unprotectedRoutes } = require("../utils/protectedRoutes");
|
||||
|
||||
const DEFAULT_MAX_NUM_ROUTES_TO_QUERY = 10;
|
||||
|
|
@ -441,6 +442,12 @@ module.exports = (
|
|||
// Register user before creating wallet
|
||||
const publicKey = await GunDB.register(alias, password);
|
||||
|
||||
await GunActions.saveSeedBackup(
|
||||
mnemonicPhrase,
|
||||
GunDB.getUser(),
|
||||
GunDB.mySEA
|
||||
)
|
||||
|
||||
walletUnlocker.initWallet(
|
||||
walletArgs,
|
||||
async (initWalletErr, initWalletResponse) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue