This commit is contained in:
Kagami Sascha Rosylight 2023-06-11 20:59:39 +02:00
parent d245306d90
commit 4c12a9d882

View file

@ -322,7 +322,7 @@ describe('OAuth', () => {
} as AuthorizationParamsExtended), { redirect: 'manual' }); } as AuthorizationParamsExtended), { redirect: 'manual' });
assertIndirectError(response, 'invalid_request'); assertIndirectError(response, 'invalid_request');
// Pattern 2: Only code_challenge_method // Pattern 3: Only code_challenge_method
response = await fetch(client.authorizeURL({ response = await fetch(client.authorizeURL({
redirect_uri, redirect_uri,
scope: 'write:notes', scope: 'write:notes',
@ -331,7 +331,7 @@ describe('OAuth', () => {
} as AuthorizationParamsExtended), { redirect: 'manual' }); } as AuthorizationParamsExtended), { redirect: 'manual' });
assertIndirectError(response, 'invalid_request'); assertIndirectError(response, 'invalid_request');
// Pattern 3: Unsupported code_challenge_method // Pattern 4: Unsupported code_challenge_method
response = await fetch(client.authorizeURL({ response = await fetch(client.authorizeURL({
redirect_uri, redirect_uri,
scope: 'write:notes', scope: 'write:notes',