Skip to content

Commit

Permalink
feat: throw useful error when trying to use createActionAuth() in b…
Browse files Browse the repository at this point in the history
…rowsers
  • Loading branch information
gr2m committed Sep 3, 2019
1 parent 80d6827 commit 2de6044
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/auth-action-browser.ts
@@ -0,0 +1,5 @@
export function createActionAuth() {
throw new Error(
"[@octokit/auth] `createActionAuth` is not supported in browsers"
);
}

0 comments on commit 2de6044

Please sign in to comment.