File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
examples/clients/typescript Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ async function oauthFlowWithoutPkce(
3434 resourceMetadataUrl : string | URL ,
3535 fetchFn : FetchLike
3636) : Promise < OAuthTokens > {
37-
3837 // 1. Fetch Protected Resource Metadata
3938 const prmResponse = await fetchFn ( resourceMetadataUrl ) ;
4039 if ( ! prmResponse . ok ) {
@@ -80,7 +79,9 @@ async function oauthFlowWithoutPkce(
8079 // BUG: NOT setting code_challenge or code_challenge_method
8180
8281 // 5. Fetch authorization endpoint (simulates redirect)
83- const authResponse = await fetchFn ( authUrl . toString ( ) , { redirect : 'manual' } ) ;
82+ const authResponse = await fetchFn ( authUrl . toString ( ) , {
83+ redirect : 'manual'
84+ } ) ;
8485 const location = authResponse . headers . get ( 'location' ) ;
8586 if ( ! location ) {
8687 throw new Error ( 'No redirect from authorization endpoint' ) ;
You can’t perform that action at this time.
0 commit comments