Skip to content

Commit

Permalink
[Docs] Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicPoullain committed Aug 22, 2024
1 parent 2520942 commit 431ae1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/docs/authentication/social-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/common/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
```
Expand Down

0 comments on commit 431ae1f

Please sign in to comment.