Skip to content

Commit

Permalink
chore(provider): added svg for Reddit (#7050)
Browse files Browse the repository at this point in the history
Added svg for Reddit

Co-authored-by: Nico Domino <yo@ndo.dev>
  • Loading branch information
Dosx001 and ndom91 committed Mar 27, 2023
1 parent ccbbc80 commit b481048
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/static/img/providers/reddit.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/core/src/providers/reddit.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ export default function Reddit(options) {
authorization: "https://www.reddit.com/api/v1/authorize?scope=identity",
token: "https://www.reddit.com/api/v1/access_token",
userinfo: "https://oauth.reddit.com/api/v1/me",
style: {
logo: "/reddit.svg",
bg: "#fff",
text: "#000",
},
options,
}
}
7 changes: 6 additions & 1 deletion packages/next-auth/src/providers/reddit.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function Reddit(options) {
name: "Reddit",
type: "oauth",
authorization: "https://www.reddit.com/api/v1/authorize?scope=identity",
token: " https://www.reddit.com/api/v1/access_token",
token: "https://www.reddit.com/api/v1/access_token",
userinfo: "https://oauth.reddit.com/api/v1/me",
profile(profile) {
return {
Expand All @@ -15,6 +15,11 @@ export default function Reddit(options) {
image: null,
}
},
style: {
logo: "https://raw.githubusercontent.com/nextauthjs/next-auth/main/packages/next-auth/provider-logos/reddit.svg",
bg: "#fff",
text: "#000",
},
options,
}
}

1 comment on commit b481048

@vercel
Copy link

@vercel vercel bot commented on b481048 Mar 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.