Skip to content

Commit 6d9b7d0

Browse files
committed
Rename create intent method, and make it accept additional arguments
1 parent e498c11 commit 6d9b7d0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Authentication.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function authorize(
138138
$user = $authorizer->verifyCredentials($credentials);
139139

140140
if ($user->requiresSecondFactor()) {
141-
$intent = $this->intent_repository->createSecondFactorIntent(
141+
$intent = $this->intent_repository->createIntent(
142142
$user,
143143
);
144144

src/Intent/RepositoryInterface.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
interface RepositoryInterface
1616
{
17-
public function createSecondFactorIntent(
17+
public function createIntent(
1818
AuthenticatedUserInterface $user,
19+
array $arguments = null,
1920
): IntentInterface;
2021
}

0 commit comments

Comments
 (0)