Skip to content

Commit f126063

Browse files
Fix Apple auth scope test
1 parent ebe5cae commit f126063

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/wallet/wdk/test/authcode.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ describe('AuthCodeHandler', () => {
311311

312312
expect(result).toContain('https://appleid.apple.com/auth/authorize?')
313313
expect(result).toContain('client_id=apple-client-id')
314-
expect(result).toContain('scope=name+email')
314+
const resultUrl = new URL(result)
315+
expect(resultUrl.searchParams.get('scope')).toBe('name email')
315316
})
316317

317318
it('Should create commitment without signer', async () => {

0 commit comments

Comments
 (0)