Skip to content

Commit

Permalink
Update TokenUserPayload to only required parameters
Browse files Browse the repository at this point in the history
Change-type: patch
  • Loading branch information
otaviojacobi committed Apr 19, 2024
1 parent cdf8079 commit 9b776fb
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions tests/auth/tokens.ts
Original file line number Diff line number Diff line change
@@ -1,30 +1,15 @@
import * as jsonwebtoken from 'jsonwebtoken';

const johnDoe = {
username: 'johndoe1',
email: 'johndoe@johndoe.com',
gitlab_id: 1325,
social_service_account: null,
hasPasswordSet: true,
public_key: false,
features: [],
id: 1344,
intercomUserHash:
'e03778dd29e157445f272acc921170cf2810b62f502645265cc349d6deda3524',
permissions: [],
actor: 1344,
jwt_secret: '1344',
};

const janeDoe = {
id: 152,
username: 'janedoe',
email: 'janedoe@asdf.com',
social_service_account: null,
has_disabled_newsletter: true,
hasPasswordSet: true,
public_key: false,
features: [],
intercomUserHash:
'0b4f9eb44b371f0e328ef5fe03ad7eb2f5f72dd418ef23149d5287096558ce03',
permissions: [],
actor: 152,
jwt_secret: '152',
};

export default {
Expand Down

0 comments on commit 9b776fb

Please sign in to comment.