Skip to content

Commit 095eeb7

Browse files
committed
breaking: named export
BREAKING CHANGE: `import login from '@octokit/oauth-login-url'` is now `import { oauthLoginUrl } from '@octokit/oauth-login-url'`
1 parent 69239d4 commit 095eeb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
declare interface Options {
1+
interface Options {
22
clientId: string
33

44
allowSignup?: boolean
@@ -19,7 +19,7 @@ export interface Result {
1919

2020
const BASE_URL = 'https://github.com/login/oauth/authorize'
2121

22-
export default function login (options: Options): Result {
22+
export function oauthLoginUrl (options: Options): Result {
2323
const scopesNormalized = typeof options.scopes === 'string'
2424
? options.scopes.split(/[,\s]+/).filter(Boolean)
2525
: Array.isArray(options.scopes) ? options.scopes : []

0 commit comments

Comments
 (0)