-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: define providers in single file for docs [skip release]
- Loading branch information
1 parent
ecbaa14
commit 1a1a1f9
Showing
4 changed files
with
53 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,37 +11,14 @@ NextAuth.js is designed to work with any OAuth service, it supports OAuth 1.0, 1 | |
|
||
### Built-in OAuth providers | ||
|
||
* [Apple](/providers/apple) | ||
* [Atlassian](/providers/atlassian) | ||
* [Auth0](/providers/auth0) | ||
* [Azure Active Directory B2C](/providers/azure-ad-b2c) | ||
* [Basecamp](/providers/basecamp) | ||
* [Battle.net](/providers/battle.net) | ||
* [Box](/providers/box) | ||
* [Bungie](/providers/bungie) | ||
* [Amazon Cognito](/providers/cognito) | ||
* [Discord](/providers/discord) | ||
* [Facebook](/providers/facebook) | ||
* [Foursquare](/providers/foursquare) | ||
* [FusionAuth](/providers/fusionauth) | ||
* [GitHub](/providers/github) | ||
* [GitLab](/providers/gitlab) | ||
* [Google](/providers/google) | ||
* [IdentityServer4](/providers/identity-server4) | ||
* [LINE](/providers/line) | ||
* [LinkedIn](/providers/linkedin) | ||
* [Mail.ru](/providers/mailru) | ||
* [Mixer](/providers/mixer) | ||
* [Netlify](/providers/netlify) | ||
* [Okta](/providers/okta) | ||
* [Reddit](/providers/reddit) | ||
* [Slack](/providers/slack) | ||
* [Spotify](/providers/spotify) | ||
* [Strava](/providers/strava) | ||
* [Twitch](/providers/Twitch) | ||
* [Twitter](/providers/twitter) | ||
* [VK](/providers/vk) | ||
* [Yandex](/providers/yandex) | ||
<ul> | ||
{Object.entries(require("../../providers.json")) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
balazsorban44
Author
Member
|
||
.filter(([key]) => !["email", "credentials"].includes(key)) | ||
.sort(([, a], [, b]) => a.localeCompare(b)) | ||
.map(([key, name]) => | ||
<li key={key}><a href={`/providers/${key}`}>{name}</a></li> | ||
)} | ||
</ul> | ||
|
||
### Using a built-in OAuth provider | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"apple": "Apple", | ||
"atlassian": "Atlassian", | ||
"auth0": "Auth0", | ||
"azure-ad-b2c": "Azure Active Directory B2C", | ||
"basecamp": "Basecamp", | ||
"battle.net": "Battle.net", | ||
"box": "Box", | ||
"bungie": "Bungie", | ||
"cognito": "Amazon Cognito", | ||
"credentials": "Credentials", | ||
"discord": "Discord", | ||
"email": "Email", | ||
"facebook": "Facebook", | ||
"foursquare": "Foursquare", | ||
"fusionauth": "FusionAuth", | ||
"github": "GitHub", | ||
"gitlab": "GitLab", | ||
"google": "Google", | ||
"identity-server4": "IdentityServer4", | ||
"line": "LINE", | ||
"linkedin": "LinkedIn", | ||
"mailru": "Mail.ru", | ||
"mixer": "Mixer", | ||
"netlify": "Netlify", | ||
"okta": "Okta", | ||
"reddit": "Reddit", | ||
"slack": "Slack", | ||
"spotify": "Spotify", | ||
"strava": "Strava", | ||
"twitch": "Twitch", | ||
"twitter": "Twitter", | ||
"vk": "VK", | ||
"yandex": "Yandex" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 comment
on commit 1a1a1f9
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.
This entire PR gets two thumbs up 👍 👍
@balazsorban44 hahah fantastic idea!