Skip to content

Commit

Permalink
fix: getServiceToken output
Browse files Browse the repository at this point in the history
  • Loading branch information
metabacalhau committed Mar 28, 2024
1 parent 3c1c28c commit 546f7b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nevermined-io/payments",
"version": "0.1.7",
"version": "0.1.8",
"description": "Typescript SDK to interact with the Nevermined Payments Protocol",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
6 changes: 4 additions & 2 deletions src/payments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,10 @@ export class Payments {
* @returns A promise that resolves to the service token.
*/
public async getServiceToken(did: string): Promise<{
accessToken: string
neverminedProxyUri: string
token: {
accessToken: string
neverminedProxyUri: string
}
}> {
const body = {
did: did,
Expand Down

0 comments on commit 546f7b1

Please sign in to comment.