import { URL } from 'url' ; import Client from '../client' ; import doOauthLogin from './oauth' ; export default function doBitbucketLogin ( client , outOfBand ? , ssoUserId ? ) { const url = new URL ( '/api/registration/bitbucket/connect' , 'https://vercel.com' ) ; return doOauthLogin ( client , url , 'Bitbucket' , outOfBand , ssoUserId ) ; }