-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change of ...nextauth providers and import replacement from nextauth.js
- Loading branch information
1 parent
32b9082
commit 5b5aa3f
Showing
2 changed files
with
33 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import NextAuth from "next-auth" | ||
import NextAuth from 'next-auth' | ||
import AppleProvider from 'next-auth/providers/apple' | ||
import FacebookProvider from 'next-auth/providers/facebook' | ||
import GoogleProvider from 'next-auth/providers/google' | ||
import EmailProvider from 'next-auth/providers/email' | ||
import GithubProvider from 'next-auth/providers/github' | ||
|
||
providers: [ | ||
// OAuth authentication providers... | ||
AppleProvider({ | ||
clientId: process.env.APPLE_ID, | ||
clientSecret: process.env.APPLE_SECRET | ||
}), | ||
FacebookProvider({ | ||
clientId: process.env.FACEBOOK_ID, | ||
clientSecret: process.env.FACEBOOK_SECRET | ||
}), | ||
GoogleProvider({ | ||
clientId: process.env.GOOGLE_ID, | ||
clientSecret: process.env.GOOGLE_SECRET | ||
}), | ||
// Passwordless / email sign in | ||
EmailProvider({ | ||
server: process.env.MAIL_SERVER, | ||
from: 'NextAuth.js <[email protected]>' | ||
}), | ||
GithubProvider({ | ||
ClientId: process.env.GITHUB_Client_ID, | ||
ClientSecret: process.env.GITHUB_CLIENT_SECRET | ||
}), | ||
] | ||
}) |
This file was deleted.
Oops, something went wrong.