Indexable
[key: string]: any
Constructors
constructor
-
Parameters
-
Default value profile: {} = {}
Properties
Optional apps
apps: undefined | {}
Optional appsMeta
appsMeta: undefined | {}
Optional name
name: undefined | string
Methods
toToken
- toToken(privateKey: string): string
-
Parameters
Returns string
Static fromToken
- fromToken(token: string, publicKeyOrAddress?: string | null): Profile
-
Parameters
-
token: string
-
Default value publicKeyOrAddress: string | null = null
Returns Profile
Static makeZoneFile
- makeZoneFile(domainName: string, tokenFileURL: string): string
-
Parameters
-
domainName: string
-
tokenFileURL: string
Returns string
Static validateSchema
- validateSchema(profile: any, strict?: boolean): any
-
Parameters
-
profile: any
-
Default value strict: boolean = false
Returns any
Represents a user profile