Skip to content

Commit b5a5443

Browse files
authored
Use the “auto” password encoder and fix typos (#1308)
1 parent d348e48 commit b5a5443

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/jwt.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Then update the security configuration:
6666
security:
6767
encoders:
6868
App\Entity\User:
69-
algorithm: argon2i
69+
algorithm: auto
7070

7171
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
7272
providers:
@@ -222,7 +222,7 @@ final class JwtDecorator implements OpenApiFactoryInterface
222222
$openApi = ($this->decorated)($context);
223223
$schemas = $openApi->getComponents()->getSchemas();
224224
225-
$schemas['Token'] = new ArrayObject([
225+
$schemas['Token'] = new \ArrayObject([
226226
'type' => 'object',
227227
'properties' => [
228228
'token' => [
@@ -231,7 +231,7 @@ final class JwtDecorator implements OpenApiFactoryInterface
231231
],
232232
],
233233
]);
234-
$schemas['Credentials'] = new ArrayObject([
234+
$schemas['Credentials'] = new \ArrayObject([
235235
'type' => 'object',
236236
'properties' => [
237237
'email' => [

0 commit comments

Comments
 (0)