Skip to content

Commit 6dc20fc

Browse files
committed
docs: add missing pkce params to saveAuthorizationCode
1 parent 24d9e69 commit 6dc20fc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/model/spec.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ If the ``allowExtendedTokenAttributes`` server option is enabled (see :ref:`OAut
632632

633633
.. _Model#saveAuthorizationCode:
634634

635-
``saveAuthorizationCode(code, client, user)``
635+
``saveAuthorizationCode(code, client, user, [codeChallenge], [codeChallengeMethod])``
636636
=========================================================
637637

638638
Invoked to save an authorization code.
@@ -667,9 +667,7 @@ This model function is **required** if the ``authorization_code`` grant is used.
667667
| codeChallengeMethod | String | One of 'plain' or 'S256'. Only present in PKCE requests. |
668668
+------------------------+----------+---------------------------------------------------------------------+
669669

670-
For PKCE requests, see :ref:`PKCE#authorizationRequest`
671-
672-
.. todo:: Is ``code.scope`` really optional?
670+
For PKCE requests, see :ref:`PKCE#authorizationRequest`.
673671

674672
**Return value:**
675673

0 commit comments

Comments
 (0)