Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
dmihalcik-virtru committed Apr 29, 2024
1 parent 5b75122 commit 9b2dc1b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
15 changes: 12 additions & 3 deletions lib/tests/web/auth/auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ describe('AccessToken', () => {
describe('exchanging refresh token for token with TDF claims', () => {
describe('using client credentials', () => {
it('passes client creds with refresh grant type to token endpoint', async () => {
const signingKey = await crypto.subtle.generateKey(algorithmSigner, true, ['sign', 'verify']);
const signingKey = await crypto.subtle.generateKey(algorithmSigner, true, [
'sign',
'verify',
]);
const mf = mockFetch({ access_token: 'fdfsdffsdf' });
const accessToken = new AccessToken(
{
Expand Down Expand Up @@ -112,7 +115,10 @@ describe('AccessToken', () => {
});
describe('using browser flow', () => {
it('passes only refresh token with refresh grant type to token endpoint', async () => {
const signingKey = await crypto.subtle.generateKey(algorithmSigner, true, ['sign', 'verify']);
const signingKey = await crypto.subtle.generateKey(algorithmSigner, true, [
'sign',
'verify',
]);
const mf = mockFetch({ access_token: 'fake_token' });
const accessToken = new AccessToken(
{
Expand Down Expand Up @@ -140,7 +146,10 @@ describe('AccessToken', () => {
describe('exchanging external JWT for token with TDF claims', () => {
describe('using client credentials', () => {
it('passes client creds and JWT with exchange grant type to token endpoint', async () => {
const signingKey = await crypto.subtle.generateKey(algorithmSigner, true, ['sign', 'verify']);
const signingKey = await crypto.subtle.generateKey(algorithmSigner, true, [
'sign',
'verify',
]);
const mf = mockFetch({ access_token: 'fake_token' });
const accessToken = new AccessToken(
{
Expand Down
3 changes: 1 addition & 2 deletions remote-store/package-lock.json

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

5 changes: 2 additions & 3 deletions web-app/package-lock.json

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

0 comments on commit 9b2dc1b

Please sign in to comment.