Ƭ AppData: object
Defined in appMethods.ts:23
-
assignedSponsorships? : undefined | number
-
callbackUrl? : undefined | string
-
context? : undefined | string
-
id: string
-
idAsHex? : undefined | false | true
-
logo? : undefined | string
-
name: string
-
nodeUrl? : undefined | string
-
soulbound: boolean
-
sponsorPublicKey? : undefined | string
-
testing? : undefined | false | true
-
unusedSponsorships? : undefined | number
-
url? : undefined | string
-
usingBlindSig? : undefined | false | true
-
verification: string
-
verificationExpirationLength? : undefined | number
-
verifications? : string[]
-
verificationsUrl: string
Ƭ SignedVerification: object
Defined in appMethods.ts:95
-
app: string
-
appUserId: string
-
publicKey? : undefined | string
-
sig? : undefined | string
-
timestamp? : undefined | number
-
unique: boolean
-
verification: string
-
verificationHash? : undefined | string
Ƭ SponsorData: object
Defined in appMethods.ts:180
- hash: string
Ƭ SponsorshipData: object
Defined in appMethods.ts:139
-
app: string
-
appHasAuthorized: boolean
-
spendRequested: boolean
-
timestamp: number
▸ generateDeeplink(app
: string, appUserId
: string): string
Defined in appMethods.ts:19
Parameters:
Name | Type | Description |
---|---|---|
app |
string | the application string to create a deeplink for |
appUserId |
string | the appUserId string corresponding to a specific BrightID |
Returns: string
a deeplink of the form brightid://link-verification/http://node.brightid.org/testContext/testContextId
▸ getApp(app
: string): Promise‹object›
Defined in appMethods.ts:50
Parameters:
Name | Type | Description |
---|---|---|
app |
string | the BrightID unique app name to get information about |
Returns: Promise‹object›
- Information about the BrightId app
▸ sponsor(key
: string, app
: string, appUserId
: string): Promise‹undefined | object | object›
Defined in appMethods.ts:192
Parameters:
Name | Type | Description |
---|---|---|
key |
string | the 64 byte private key attached to the {app} used to sponsor a BrightID |
app |
string | the application in which to sponsor a given BrightID |
appUserId |
string | the appUserId linked to the BrightID user being sponsored |
Returns: Promise‹undefined | object | object›
A hash of the operation if successfully submitted to the BrightID node or an error
▸ unusedSponsorships(app
: string): Promise‹undefined | number›
Defined in appMethods.ts:70
Parameters:
Name | Type | Description |
---|---|---|
app |
string | the application to retrieve unused sponsorships for |
Returns: Promise‹undefined | number›
Returns the number of sponsorships available to the specified app
▸ userSponsorshipStatus(appUserId
: string): Promise‹object›
Defined in appMethods.ts:152
Parameters:
Name | Type | Description |
---|---|---|
appUserId |
string | the appUserId string corresponding to a specific user in a BrightID app |
Returns: Promise‹object›
- the sponsorship status for the user
▸ userVerificationStatus(app
: string, appUserId
: string, params?
: undefined | object): Promise‹object›
Defined in appMethods.ts:114
Parameters:
Name | Type | Description |
---|---|---|
app |
string | the application app to get signed verification from |
appUserId |
string | the appUserId string corresponding to a specific user in a BrightID app |
params? |
undefined | object | the query parameters to pass to the signed verification endpoint |
Returns: Promise‹object›