@@ -559,21 +559,21 @@ export function tests() {
559559 const segments = parseUrlPath ( "state=tc9CnLU7&code=cnmUnwIYtY7V8RrWUyhJa4yvX72jJ5Yx" , path ) ;
560560 assert . equal ( segments . length , 1 ) ;
561561 assert . equal ( segments [ 0 ] . type , "oidc" ) ;
562- assert . deepEqual ( segments [ 0 ] . value , { state : "tc9CnLU7" , code : "cnmUnwIYtY7V8RrWUyhJa4yvX72jJ5Yx" } ) ;
562+ assert . deepEqual ( segments [ 0 ] . value , { state : "tc9CnLU7" , code : "cnmUnwIYtY7V8RrWUyhJa4yvX72jJ5Yx" , success : true } ) ;
563563 } ,
564564 "Parse OIDC error" : assert => {
565565 const path = createEmptyPath ( ) ;
566566 const segments = parseUrlPath ( "state=tc9CnLU7&error=invalid_request" , path ) ;
567567 assert . equal ( segments . length , 1 ) ;
568568 assert . equal ( segments [ 0 ] . type , "oidc" ) ;
569- assert . deepEqual ( segments [ 0 ] . value , { state : "tc9CnLU7" , error : "invalid_request" , errorUri : null , errorDescription : null } ) ;
569+ assert . deepEqual ( segments [ 0 ] . value , { state : "tc9CnLU7" , error : "invalid_request" , errorUri : null , errorDescription : null , success : false } ) ;
570570 } ,
571571 "Parse OIDC error with description" : assert => {
572572 const path = createEmptyPath ( ) ;
573573 const segments = parseUrlPath ( "state=tc9CnLU7&error=invalid_request&error_description=Unsupported%20response_type%20value" , path ) ;
574574 assert . equal ( segments . length , 1 ) ;
575575 assert . equal ( segments [ 0 ] . type , "oidc" ) ;
576- assert . deepEqual ( segments [ 0 ] . value , { state : "tc9CnLU7" , error : "invalid_request" , errorDescription : "Unsupported response_type value" , errorUri : null } ) ;
576+ assert . deepEqual ( segments [ 0 ] . value , { state : "tc9CnLU7" , error : "invalid_request" , errorDescription : "Unsupported response_type value" , errorUri : null , success : false } ) ;
577577 } ,
578578 }
579579}
0 commit comments