Skip to content

Commit

Permalink
chore(salesforce): fix multiple typos in provider
Browse files Browse the repository at this point in the history
  • Loading branch information
ndom91 committed Apr 8, 2024
1 parent cb6e485 commit 1de6bc7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/core/src/providers/salesforce.ts
Expand Up @@ -2,7 +2,7 @@
* <div style={{backgroundColor: "#000", display: "flex", justifyContent: "space-between", color: "#fff", padding: 16}}>
* <span>Built-in <b>Salesforce</b> integration.</span>
* <a href="https://www.salesforce.com/ap/?ir=1">
* <img style={{display: "block"}} src="https://authjs.dev/img/providers/saleforce.svg" height="48" />
* <img style={{display: "block"}} src="https://authjs.dev/img/providers/salesforce.svg" height="48" />
* </a>
* </div>
*
Expand All @@ -18,38 +18,38 @@ export interface SalesforceProfile extends Record<string, any> {
}

/**
* Add SaleForce login to your page.
* Add Salesforce login to your page.
*
* ### Setup
*
* #### Callback URL
* ```
* https://example.com/api/auth/callback/saleforce
* https://example.com/api/auth/callback/salesforce
* ```
*
* #### Configuration
*```js
* import Auth from "@auth/core"
* import SaleForce from "@auth/core/providers/saleforce"
* import salesforce from "@auth/core/providers/salesforce"
*
* const request = new Request(origin)
* const response = await Auth(request, {
* providers: [SaleForce({ clientId: SALEFORCE_CLIENT_ID, clientSecret: SALEFORCE_CLIENT_SECRET })],
* providers: [salesforce({ clientId: salesforce_CLIENT_ID, clientSecret: salesforce_CLIENT_SECRET })],
* })
* ```
*
* ### Resources
*
* - [SaleForce OAuth documentation](https://help.salesforce.com/articleView?id=remoteaccess_authenticate.htm&type=5)
* - [Salesforce OAuth documentation](https://help.salesforce.com/articleView?id=remoteaccess_authenticate.htm&type=5)
*
* ### Notes
*
* By default, Auth.js assumes that the SaleForce provider is
* By default, Auth.js assumes that the salesforce provider is
* based on the [OAuth 2](https://www.rfc-editor.org/rfc/rfc6749.html) specification.
*
* :::tip
*
* The SaleForce provider comes with a [default configuration](https://github.com/nextauthjs/next-auth/blob/main/packages/core/src/providers/saleforce.ts).
* The Salesforce provider comes with a [default configuration](https://github.com/nextauthjs/next-auth/blob/main/packages/core/src/providers/salesforce.ts).
* To override the defaults for your use case, check out [customizing a built-in OAuth provider](https://authjs.dev/guides/providers/custom-provider#override-default-options).
*
* :::
Expand Down

0 comments on commit 1de6bc7

Please sign in to comment.