Constructors
constructor
- new Identity(__namedParameters: IdentityConstructorOptions): Identity
-
Parameters
-
__namedParameters: IdentityConstructorOptions
Properties
Optional defaultUsername
defaultUsername: string
usernames
usernames: string[]
Methods
appPrivateKey
- appPrivateKey(appDomain: string): string
-
Parameters
Returns string
fetchNames
- fetchNames(): Promise<string[]>
-
Returns Promise<string[]>
makeAuthResponse
- makeAuthResponse(__namedParameters: { appDomain: string; gaiaUrl: string; scopes?: string[]; stxAddress?: string; transitPublicKey: string }): Promise<string>
-
Parameters
-
__namedParameters: { appDomain: string; gaiaUrl: string; scopes?: string[]; stxAddress?: string; transitPublicKey: string }
-
appDomain: string
-
gaiaUrl: string
-
Optional scopes?: string[]
-
Optional stxAddress?: string
-
transitPublicKey: string
Returns Promise<string>
profileUrl
- profileUrl(gaiaUrl: string): Promise<string>
-
Parameters
Returns Promise<string>
refresh
- refresh(opts?: RefreshOptions): Promise<void>
-
Parameters
-
opts: RefreshOptions = ...
Returns Promise<void>
Fetch existing information related to this identity, like username and profile information