-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
feat(providers): Add Epic Games provider #12944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat(providers): Add Epic Games provider #12944
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
@yaelbrinkert is attempting to deploy a commit to the authjs Team on Vercel. A member of the Team first needs to authorize it. |
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.
Thanks, I have dropped some comments
btw, could you also update this file: docs/pages/data/manifest.json with the provider name
And could you also record a video showing that it is working on your end?
authorization: { | ||
url: "https://www.epicgames.com/id/authorize", | ||
params: { | ||
scope: "profile friends_list country", |
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.
for default scope, let's not include these
scope: "profile friends_list country", | |
scope: "profile", |
|
||
token: { | ||
url: "https://api.epicgames.dev/epic/oauth/v2/token", | ||
async request(context) { |
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.
we can simplify this by utilising the property token_endpoint_auth_method: 'client_secret_basic'
no need to specify the fetch call manually here.
clientId: options.clientId, | ||
clientSecret: options.clientSecret, |
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.
no needed to be explicit define these
Hi, i have to ask, should i update my fork and make another PR (with your
modifications of course) on the new release 5.0.0-beta ? Or i should stay
with the fork i've created 2 months ago ?
Thank you for all your precisions.
Yael
Le sam. 10 mai 2025 à 05:15, Thang Vu ***@***.***> a écrit :
… ***@***.**** requested changes on this pull request.
Thanks, I have dropped some comments
btw, could you also update this file: docs/pages/data/manifest.json with
the provider name
And could you also record a video showing that it is working on your end?
------------------------------
In packages/core/src/providers/epicgames.ts
<#12944 (comment)>
:
> + * clientSecret: process.env.EPIC_CLIENT_SECRET,
+ * })
+ * ]
+ * ```
+ */
+export default function EpicGamesProvider<P extends EpicGamesProfile>(
+ options: OAuthUserConfig<P>
+): OAuthConfig<P> {
+ return {
+ id: "epicgames",
+ name: "Epic Games",
+ type: "oauth",
+ authorization: {
+ url: "https://www.epicgames.com/id/authorize",
+ params: {
+ scope: "profile friends_list country",
for default scope, let's not include these
⬇️ Suggested change
- scope: "profile friends_list country",
+ scope: "profile",
------------------------------
In packages/core/src/providers/epicgames.ts
<#12944 (comment)>
:
> +): OAuthConfig<P> {
+ return {
+ id: "epicgames",
+ name: "Epic Games",
+ type: "oauth",
+ authorization: {
+ url: "https://www.epicgames.com/id/authorize",
+ params: {
+ scope: "profile friends_list country",
+ response_type: "code",
+ },
+ },
+
+ token: {
+ url: "https://api.epicgames.dev/epic/oauth/v2/token",
+ async request(context) {
we can simplify this by utilising the property token_endpoint_auth_method:
'client_secret_basic'
no need to specify the fetch call manually here.
------------------------------
In packages/core/src/providers/epicgames.ts
<#12944 (comment)>
:
> + clientId: options.clientId,
+ clientSecret: options.clientSecret,
no needed to be explicit define these
—
Reply to this email directly, view it on GitHub
<#12944 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASAI36OWGFG6JIDKPOPVBV325VVNZAVCNFSM6AAAAAB4W423WCVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDQMZQGEYTQNBTGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
☕️ Reasoning
🧢 Checklist
🎫 Affected issues
📌 Resources