File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -565,7 +565,11 @@ func TestSuperTokensInitWithCustomHeaderNoneTrueSessionConfigResultsWithNormalWe
565565 if err != nil {
566566 t .Error (err .Error ())
567567 }
568- assert .Equal (t , sessionSingletonInstance .Config .AntiCsrfFunctionOrString .StrValue , "VIA_CUSTOM_HEADER" )
568+ anticsrf , err := sessionSingletonInstance .Config .AntiCsrfFunctionOrString .FunctionValue (nil , nil )
569+ if err != nil {
570+ t .Error (err .Error ())
571+ }
572+ assert .Equal (t , anticsrf , "VIA_CUSTOM_HEADER" )
569573 cookieSameSite , err := sessionSingletonInstance .Config .GetCookieSameSite (nil , nil )
570574 if err != nil {
571575 t .Error (err .Error ())
@@ -603,7 +607,11 @@ func TestSuperTokensInitWithCustomHeaderNoneTrueSessionConfigResultsWithLocalWeb
603607 if err != nil {
604608 t .Error (err .Error ())
605609 }
606- assert .Equal (t , sessionSingletonInstance .Config .AntiCsrfFunctionOrString .StrValue , "VIA_CUSTOM_HEADER" )
610+ anticsrf , err := sessionSingletonInstance .Config .AntiCsrfFunctionOrString .FunctionValue (nil , nil )
611+ if err != nil {
612+ t .Error (err .Error ())
613+ }
614+ assert .Equal (t , anticsrf , "VIA_CUSTOM_HEADER" )
607615 cookieSameSite , err := sessionSingletonInstance .Config .GetCookieSameSite (nil , nil )
608616 if err != nil {
609617 t .Error (err .Error ())
You can’t perform that action at this time.
0 commit comments