Skip to content

Commit d84fcc7

Browse files
committed
Update spec
1 parent 1290fd9 commit d84fcc7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/AuthenticationAdapters.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ describe('apple signin auth adapter', () => {
11041104
it('should not verify invalid id_token', async () => {
11051105
try {
11061106
await apple.validateAuthData(
1107-
{ id: 'the_token' },
1107+
{ id: 'the_user_id', token: 'the_token' },
11081108
{ client_id: 'secret' }
11091109
);
11101110
fail();
@@ -1122,7 +1122,7 @@ describe('apple signin auth adapter', () => {
11221122
spyOn(jwt, 'verify').and.callFake(() => fakeClaim);
11231123

11241124
const result = await apple.validateAuthData(
1125-
{ id: 'the_token' },
1125+
{ id: 'the_user_id', token: 'the_token' },
11261126
{ client_id: 'secret' }
11271127
);
11281128
expect(result).toEqual(fakeClaim);
@@ -1136,7 +1136,7 @@ describe('apple signin auth adapter', () => {
11361136

11371137
try {
11381138
await apple.validateAuthData(
1139-
{ id: 'the_token' },
1139+
{ id: 'the_user_id', token: 'the_token' },
11401140
{ client_id: 'secret' }
11411141
);
11421142
fail();
@@ -1156,7 +1156,7 @@ describe('apple signin auth adapter', () => {
11561156

11571157
try {
11581158
await apple.validateAuthData(
1159-
{ id: 'the_token' },
1159+
{ id: 'the_user_id', token: 'the_token' },
11601160
{ client_id: 'secret' }
11611161
);
11621162
fail();

0 commit comments

Comments
 (0)