From 431ae1f163b318e7e1a150c2e5111225d6fe5c75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Poullain?= Date: Thu, 22 Aug 2024 21:19:03 +0200 Subject: [PATCH] [Docs] Fix typos --- docs/docs/authentication/social-auth.md | 6 +++--- docs/docs/common/logging.md | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/docs/authentication/social-auth.md b/docs/docs/authentication/social-auth.md index 588c1549be..b6def34bf7 100644 --- a/docs/docs/authentication/social-auth.md +++ b/docs/docs/authentication/social-auth.md @@ -155,12 +155,12 @@ export class AuthController { } ``` -You can also override in the `redirect` method the scopes you want: +You can also override in the `createHttpResponseWithConsentPageUrl` method the scopes you want: ```typescript return this.google.createHttpResponseWithConsentPageUrl({ isRedirection: true, scopes: [ 'email' ] }); ``` -Additional parameters can passed to the `redirect` and `getUserInfo` methods depending on the provider. +Additional parameters can passed to the `createHttpResponseWithConsentPageUrl` and `getUserInfo` methods depending on the provider. > If you want to manage the redirection on the client side manually, don't specify the `isRedirection` option. In this case, the `createHttpResponseWithConsentPageUrl` method returns an `HttpResponseOK` whose body contains the URL of the consent page. The name of the body property is `consentPageUrl`. @@ -491,7 +491,7 @@ const { userInfo } = await this.facebook.getUserInfo(ctx, { |Name|Type|Description| |---|---|---| -|`fields`|`string[]`|List of fields that the returned user info object should contain. These fields may or may not be available depending on the permissions (`scopes`) that were requested with the `redirect` method. Default: `['id', 'name', 'email']`.| +|`fields`|`string[]`|List of fields that the returned user info object should contain. These fields may or may not be available depending on the permissions (`scopes`) that were requested with the `createHttpResponseWithConsentPageUrl` method. Default: `['id', 'name', 'email']`.| ### Github diff --git a/docs/docs/common/logging.md b/docs/docs/common/logging.md index 8bbb66ebc2..5d7332d77f 100644 --- a/docs/docs/common/logging.md +++ b/docs/docs/common/logging.md @@ -216,12 +216,12 @@ When an error is thrown (or rejected) in a hook, controller or service and is no ### Disabling Error Logging -In some scenarios, you might want to disable error logging. You can achieve this by setting the `allErrors` configuration option to false. +In some scenarios, you might want to disable error logging. You can achieve this by setting the `logErrors` configuration option to false. ```json { "settings": { - "allErrors": false + "logErrors": false } } ```