Skip to content

Commit 2de6044

Browse files
committed
feat: throw useful error when trying to use createActionAuth() in browsers
1 parent 80d6827 commit 2de6044

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/auth-action-browser.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export function createActionAuth() {
2+
throw new Error(
3+
"[@octokit/auth] `createActionAuth` is not supported in browsers"
4+
);
5+
}

0 commit comments

Comments
 (0)