@@ -1847,7 +1847,7 @@ export class HttpTransport {
18471847
18481848 router . register ( 'authorization_code' , {
18491849 required : [ 'code' , 'client_id' ] ,
1850- optional : [ 'redirect_uri' , 'client_secret' , 'code_verifier' ] ,
1850+ optional : [ 'redirect_uri' , 'client_secret' , 'code_verifier' , 'resource' , 'scope' , 'client_assertion' , 'client_assertion_type' ] ,
18511851 handler : async ( request , response ) => {
18521852 if ( ! profileState . oauthProvider ) {
18531853 response . status ( HTTP_STATUS . NOT_FOUND ) . json ( { error : 'server_error' , error_description : 'OAuth provider not initialized' } ) ;
@@ -1870,7 +1870,7 @@ export class HttpTransport {
18701870
18711871 router . register ( 'refresh_token' , {
18721872 required : [ 'refresh_token' , 'client_id' ] ,
1873- optional : [ 'client_secret' ] ,
1873+ optional : [ 'client_secret' , 'resource' , 'scope' , 'client_assertion' , 'client_assertion_type' ] ,
18741874 handler : async ( request , response ) => {
18751875 if ( ! profileState . oauthProvider ) {
18761876 response . status ( HTTP_STATUS . NOT_FOUND ) . json ( { error : 'server_error' , error_description : 'OAuth provider not initialized' } ) ;
0 commit comments