@@ -902,8 +902,9 @@ const Authenticate = (() => {
902902 const token = response . service_token . token ;
903903 const in_90_minutes = 1 / 16 ;
904904 Cookies . set ( 'onfido_token' , token , {
905- expires : in_90_minutes ,
906- secure : true ,
905+ expires : in_90_minutes ,
906+ secure : true ,
907+ sameSite : 'strict' ,
907908 } ) ;
908909 resolve ( { token } ) ;
909910 } ) ;
@@ -930,7 +931,7 @@ const Authenticate = (() => {
930931 }
931932
932933 const service_token_response = await getOnfidoServiceToken ( ) ;
933-
934+
934935 if (
935936 service_token_response . error &&
936937 service_token_response . error . code === 'MissingPersonalDetails'
@@ -954,7 +955,7 @@ const Authenticate = (() => {
954955
955956 $ ( '#missing_personal_fields' ) . html ( error_msgs ) ;
956957 }
957-
958+
958959 const { identity, document } = authentication_status ;
959960
960961 const is_fully_authenticated = identity . status === 'verified' && document . status === 'verified' ;
@@ -965,7 +966,7 @@ const Authenticate = (() => {
965966 $ ( '#authentication_tab' ) . setVisibility ( 0 ) ;
966967 $ ( '#authentication_verified' ) . setVisibility ( 1 ) ;
967968 }
968-
969+
969970 if ( has_personal_details_error ) {
970971 $ ( '#personal_details_error' ) . setVisibility ( 1 ) ;
971972 } else if ( ! identity . further_resubmissions_allowed ) {
@@ -1036,7 +1037,7 @@ const Authenticate = (() => {
10361037 $ ( '#authentication_loading' ) . setVisibility ( 0 ) ;
10371038 $ ( '#authentication_unneeded' ) . setVisibility ( 1 ) ;
10381039 }
1039-
1040+
10401041 const has_svg_account = Client . hasSvgAccount ( ) ;
10411042 if ( is_required || has_svg_account ) {
10421043 initTab ( ) ;
0 commit comments