UNPKG

next-auth

Version:

Authentication for Next.js

28 lines (24 loc) 625 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = Coinbase; function Coinbase(options) { return { id: "coinbase", name: "Coinbase", type: "oauth", authorization: "https://www.coinbase.com/oauth/authorize?scope=wallet:user:email+wallet:user:read", token: "https://api.coinbase.com/oauth/token", userinfo: "https://api.coinbase.com/v2/user", profile(profile) { return { id: profile.data.id, name: profile.data.name, email: profile.data.email, image: profile.data.avatar_url }; }, options }; }