mirror of
https://github.com/selfxyz/self.git
synced 2026-04-27 03:01:15 -04:00
update text (#1600)
This commit is contained in:
@@ -4,8 +4,19 @@
|
||||
|
||||
import { ethers } from 'ethers';
|
||||
|
||||
import { STORAGE_NAME } from '@/services/cloud-backup';
|
||||
import type { Mnemonic } from '@/types/mnemonic';
|
||||
|
||||
/**
|
||||
* Gets the recovery phrase warning message based on the current platform.
|
||||
* The message mentions cloud backup options available for the OS.
|
||||
* @returns The recovery phrase warning message
|
||||
*/
|
||||
export function getRecoveryPhraseWarningMessage(): string {
|
||||
const cloudBackupName = STORAGE_NAME;
|
||||
return `Using this phrase or ${cloudBackupName} backup are the only ways to recover your account. Keep it secret, keep it safe.`;
|
||||
}
|
||||
|
||||
/**
|
||||
* Type guard to check if an object is a valid Mnemonic
|
||||
* @param obj The object to check
|
||||
|
||||
Reference in New Issue
Block a user