Skip to content

Commit 3f371cc

Browse files
authored
Add resources property to CreateTokenRequest interface definition (#290)
* Add resources property to CreateTokenRequest type definition * Make resources optional
1 parent f441462 commit 3f371cc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

types/customerToken.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,21 @@ export interface CreateTokenRequest {
7474
* Required if scope includes a scope which require two-factor authentication. Should be in a valid JWT structure.
7575
*/
7676
jwtToken?: string
77+
78+
/**
79+
* Optional. Scopes the customer token additionally to any resources included.
80+
*/
81+
resources?: {
82+
/**
83+
* Only cards or accounts can be scoped currently.
84+
*/
85+
type: "card" | "account"
86+
87+
/**
88+
* Array of ids corresponding to whatever type is passed in.
89+
*/
90+
ids: string[]
91+
}[]
7792
}
7893
}
7994

0 commit comments

Comments
 (0)