Skip to content

Commit a59a009

Browse files
committed
chore: add tierId to token payload
1 parent ee0d1f0 commit a59a009

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/modules/user/user.usecase.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,7 @@ export class UserUseCases {
908908
networkCredentials: {
909909
user: user.bridgeUser,
910910
},
911+
tierId: user.tierId,
911912
workspaces: { owners },
912913
...(platform && { platform }),
913914
},

test/helpers/auth.helper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export function generateAuthToken(user: User, jwtSecret?: string): string {
1919
user: user.bridgeUser,
2020
pass: user.userId,
2121
},
22+
tierId: user.tierId,
2223
},
2324
},
2425
secret,

test/helpers/user.helper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export async function createTestUser(
104104
networkCredentials: {
105105
user: user.bridgeUser,
106106
},
107+
tierId: user.tierId,
107108
},
108109
},
109110
secret,

0 commit comments

Comments
 (0)