UNPKG

next-auth

Version:

Authentication for Next.js

33 lines (29 loc) 680 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Reddit; function Reddit(options) { return { id: "reddit", name: "Reddit", type: "oauth", version: "2.0", scope: "identity", params: { grant_type: "authorization_code" }, accessTokenUrl: " https://www.reddit.com/api/v1/access_token", authorizationUrl: "https://www.reddit.com/api/v1/authorize?response_type=code", profileUrl: "https://oauth.reddit.com/api/v1/me", profile(profile) { return { id: profile.id, name: profile.name, image: null, email: null }; }, ...options }; }