File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ Passport Attributes
350350
351351Besides badges, passports can define attributes, which allows the ``authenticate() ``
352352method to store arbitrary information in the passport to access it from other
353- authenticator methods (e.g. ``createAuthenticatedToken () ``)::
353+ authenticator methods (e.g. ``createToken () ``)::
354354
355355 // ...
356356 use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge;
@@ -371,7 +371,7 @@ authenticator methods (e.g. ``createAuthenticatedToken()``)::
371371 return $passport;
372372 }
373373
374- public function createAuthenticatedToken (PassportInterface $passport, string $firewallName): TokenInterface
374+ public function createToken (PassportInterface $passport, string $firewallName): TokenInterface
375375 {
376376 // read the attribute value
377377 return new CustomOauthToken($passport->getUser(), $passport->getAttribute('scope'));
You can’t perform that action at this time.
0 commit comments