@@ -241,7 +241,7 @@ Finally, configure your ``firewalls`` key in ``security.yaml`` to use this authe
241241 'logout' => true,
242242 'guard' => [
243243 'authenticators' => [
244- TokenAuthenticator::class
244+ TokenAuthenticator::class,
245245 ],
246246 ],
247247 // ...
@@ -321,7 +321,7 @@ Each authenticator needs the following methods:
321321 the user authenticate (e.g. a 401 response that says "token is missing!").
322322
323323**supportsRememberMe() **
324- If you want to support "remember me" functionality, return true from this method.
324+ If you want to support "remember me" functionality, return `` true `` from this method.
325325 You will still need to activate ``remember_me `` under your firewall for it to work.
326326 Since this is a stateless API, you do not want to support "remember me"
327327 functionality in this example.
@@ -330,7 +330,8 @@ Each authenticator needs the following methods:
330330 If you are implementing the :class: `Symfony\\ Component\\ Security\\ Guard\\ AuthenticatorInterface `
331331 instead of extending the :class: `Symfony\\ Component\\ Security\\ Guard\\ AbstractGuardAuthenticator `
332332 class, you have to implement this method. It will be called
333- after a successful authentication to create and return the token
333+ after a successful authentication to create and return the token (a
334+ class implementing :class: `Symfony\\ Component\\ Security\\ Guard\\ Token\\ GuardTokenInterface `)
334335 for the user, who was supplied as the first argument.
335336
336337The picture below shows how Symfony calls Guard Authenticator methods:
0 commit comments