@refinio/one.models
    Preparing search index...

    Function readOrCreateIdentityWithSecretsFile

    • Read an identity from the specified file or create a new one if the file does not exist.

      If and identity file does not exist it will create a file with a random identity. Prerequisite is, that the filename ends in '_secret.id.json'

      If you set filename to abc_secret.id.json then this will generate the following files:

      • abc_secret.id.json
      • abc.id.json

      Parameters

      • fileName: string

        The file rom which to read / to which to write the identity to.

      • Optionalurl: string

        url to include in the randomly generated identity.

      • OptionalpersonEmail: string

        The person email to use when a new identity is created. If not specified a random string is used.

      • OptionalinstanceName: string

        The instance name to use when a new identity is created. If not specified a random string is used.

      Returns Promise<IdentityWithSecrets>