-
Notifications
You must be signed in to change notification settings - Fork 3
(api definitions) Document OpenAPI OAuth and clarify parameters #1278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| ``` | ||
|
|
||
| ## Multiple security schemes | ||
| ## OAuth client credentials |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 [vale] reported by reviewdog 🐶
[FernStyles.Headings] 'OAuth client credentials' should use sentence-style capitalization.
| <ParamField path="expires-in" type="string" required={false}> | ||
| The property name for the expires in property in the response. | ||
| <ParamField path="response-properties.expires-in" type="string" required={false}> | ||
| The response field name for token expiration time in seconds (e.g., `"expiresIn"`, `"expires_in"`). When present, the SDK automatically refreshes tokens before expiration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[FernStyles.Current] Avoid time-relative terms like 'present' that become outdated
| <ParamField path="type" type="literal<'client-credentials'>" required={true}> | ||
| The OAuth flow type. Currently only `"client-credentials"` is supported. | ||
| <ParamField path="type" type="'client-credentials'" required={true}> | ||
| The OAuth 2.0 grant type. Currently only `"client-credentials"` is supported. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[FernStyles.Current] Avoid time-relative terms like 'Currently' that become outdated
| @@ -1,6 +1,6 @@ | |||
| Configuration for the token refresh endpoint. | |||
| Specifies the endpoint that exchanges a refresh token for a new access token. When configured, the SDK automatically uses this endpoint to renew expired tokens without re-sending credentials. If not configured, the SDK will re-authenticate using `get-token` when tokens expire. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[FernStyles.Current] Avoid time-relative terms like 'new' that become outdated
| <ParamField path="access-token" type="string" required={false}> | ||
| The property name for the access token in the response. | ||
| <ParamField path="response-properties.access-token" type="string" required={false}> | ||
| The response field name for the new access token (e.g., `"accessToken"`, `"access_token"`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[FernStyles.Current] Avoid time-relative terms like 'new' that become outdated
| <ParamField path="expires-in" type="string" required={false}> | ||
| The property name for the expires in property in the response. | ||
| <ParamField path="response-properties.expires-in" type="string" required={false}> | ||
| The response field name for the new token's expiration time in seconds (e.g., `"expiresIn"`, `"expires_in"`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[FernStyles.Current] Avoid time-relative terms like 'new' that become outdated
| <ParamField path="refresh-token" type="string" required={false}> | ||
| The property name for the refresh token in the response. | ||
| <ParamField path="response-properties.refresh-token" type="string" required={false}> | ||
| The response field name if your API issues a new refresh token with each refresh (token rotation). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[FernStyles.Current] Avoid time-relative terms like 'new' that become outdated
No description provided.