Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"qs": "6.17.1",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.2",
"tc-core-library-js": "https://codeload.github.com/topcoder-platform/tc-core-library-js/tar.gz/58de37670180e183e8378c3d203df0112a0414f6",
"tc-core-library-js": "https://codeload.github.com/topcoder-platform/tc-core-library-js/tar.gz/c2df92b2227089909ab6e229df0ec6b658bb431a",
"uuid": "^14.0.3",
"winston": "^3.19.0"
},
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ overrides:
browserslist: 4.28.8
axios@<1: 0.34.0
axios@>=1: 1.21.0
tc-core-library-js: https://codeload.github.com/topcoder-platform/tc-core-library-js/tar.gz/58de37670180e183e8378c3d203df0112a0414f6
tc-core-library-js: https://codeload.github.com/topcoder-platform/tc-core-library-js/tar.gz/c2df92b2227089909ab6e229df0ec6b658bb431a
deepmerge-ts: 8.0.0
defu: 6.1.7
effect@^3: 3.22.0
Expand Down
14 changes: 9 additions & 5 deletions src/shared/modules/global/jwt.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ import { Scope } from 'src/shared/enums/scopes.enum';
import { JwtService } from './jwt.service';

function signToken(payload: Record<string, unknown>): string {
return jwt.sign(payload, 'test-secret-with-at-least-32-bytes-long', {
issuer: 'https://issuer.test/',
audience: 'api',
expiresIn: 300,
});
return jwt.sign(
{ emailVerified: true, ...payload },
'test-secret-with-at-least-32-bytes-long',
{
issuer: 'https://issuer.test/',
audience: 'api',
expiresIn: 300,
},
);
}

describe('JwtService', () => {
Expand Down
Loading