Skip to content

Commit 1895197

Browse files
committed
Fix model spec to use code.authorizationCode instead of code.code
1 parent e8f9a1c commit 1895197

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

docs/model/spec.rst

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ An ``Object`` representing the authorization code and associated data.
341341
+============================+========+===============================================================+
342342
| code | Object | The return value. |
343343
+----------------------------+--------+---------------------------------------------------------------+
344-
| code.code | String | The authorization code passed to ``getAuthorizationCode()``. |
344+
| code.authorizationCode | String | The authorization code passed to ``getAuthorizationCode()``. |
345345
+----------------------------+--------+---------------------------------------------------------------+
346346
| code.expiresAt | Date | The expiry time of the authorization code. |
347347
+----------------------------+--------+---------------------------------------------------------------+
@@ -830,27 +830,27 @@ This model function is **required** if the ``authorization_code`` grant is used.
830830

831831
**Arguments:**
832832

833-
+--------------------+----------+---------------------------------------------------------------------+
834-
| Name | Type | Description |
835-
+====================+==========+=====================================================================+
836-
| code | Object | The return value. |
837-
+--------------------+----------+---------------------------------------------------------------------+
838-
| code.code | String | The authorization code. |
839-
+--------------------+----------+---------------------------------------------------------------------+
840-
| code.expiresAt | Date | The expiry time of the authorization code. |
841-
+--------------------+----------+---------------------------------------------------------------------+
842-
| [code.redirectUri] | String | The redirect URI of the authorization code. |
843-
+--------------------+----------+---------------------------------------------------------------------+
844-
| [code.scope] | String | The authorized scope of the authorization code. |
845-
+--------------------+----------+---------------------------------------------------------------------+
846-
| code.client | Object | The client associated with the authorization code. |
847-
+--------------------+----------+---------------------------------------------------------------------+
848-
| code.client.id | String | A unique string identifying the client. |
849-
+--------------------+----------+---------------------------------------------------------------------+
850-
| code.user | Object | The user associated with the authorization code. |
851-
+--------------------+----------+---------------------------------------------------------------------+
852-
| [callback] | Function | Node-style callback to be used instead of the returned ``Promise``. |
853-
+--------------------+----------+---------------------------------------------------------------------+
833+
+------------------------+----------+---------------------------------------------------------------------+
834+
| Name | Type | Description |
835+
+========================+==========+=====================================================================+
836+
| code | Object | The return value. |
837+
+------------------------+----------+---------------------------------------------------------------------+
838+
| code.authorizationCode | String | The authorization code. |
839+
+------------------------+----------+---------------------------------------------------------------------+
840+
| code.expiresAt | Date | The expiry time of the authorization code. |
841+
+------------------------+----------+---------------------------------------------------------------------+
842+
| [code.redirectUri] | String | The redirect URI of the authorization code. |
843+
+------------------------+----------+---------------------------------------------------------------------+
844+
| [code.scope] | String | The authorized scope of the authorization code. |
845+
+------------------------+----------+---------------------------------------------------------------------+
846+
| code.client | Object | The client associated with the authorization code. |
847+
+------------------------+----------+---------------------------------------------------------------------+
848+
| code.client.id | String | A unique string identifying the client. |
849+
+------------------------+----------+---------------------------------------------------------------------+
850+
| code.user | Object | The user associated with the authorization code. |
851+
+------------------------+----------+---------------------------------------------------------------------+
852+
| [callback] | Function | Node-style callback to be used instead of the returned ``Promise``. |
853+
+------------------------+----------+---------------------------------------------------------------------+
854854

855855
**Return value:**
856856

0 commit comments

Comments
 (0)