Skip to content

Commit

Permalink
fix: load the configuration first before init csrf
Browse files Browse the repository at this point in the history
  • Loading branch information
ibnsultan authored Oct 10, 2024
1 parent a766451 commit 362352f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ public function csrf($options = [])
}

if (!Anchor\CSRF::token()) {
Anchor\CSRF::init();
Anchor\CSRF::config($options);
Anchor\CSRF::init();
}

$this->use(function () {
Expand Down

0 comments on commit 362352f

Please sign in to comment.