Skip to content

Commit eadf00a

Browse files
authored
AuthorizedUser was missing jwtSubject (#301)
1 parent ed45618 commit eadf00a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

types/common.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,12 @@ export type BusinessContact = {
198198
jwtSubject?: string
199199
} & Pick<BaseContactAttributes, "fullName" | "email" | "phone">
200200

201-
export type AuthorizedUser = Pick<BaseContactAttributes, "fullName" | "email" | "phone">
201+
export type AuthorizedUser = Pick<BaseContactAttributes, "fullName" | "email" | "phone"> & {
202+
/**
203+
* Optional. See (this)[https://docs.unit.co/customer-api-tokens/#customers-create-customer-bearer-token-jwt] section for more information.
204+
*/
205+
jwtSubject?: string
206+
}
202207

203208
export interface Counterparty {
204209
/**

0 commit comments

Comments
 (0)