From 2de60440adf0e19b6b24eee70af4c581930776f4 Mon Sep 17 00:00:00 2001 From: Gregor Martynus Date: Mon, 2 Sep 2019 23:40:00 -0700 Subject: [PATCH] feat: throw useful error when trying to use `createActionAuth()` in browsers --- src/auth-action-browser.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/auth-action-browser.ts diff --git a/src/auth-action-browser.ts b/src/auth-action-browser.ts new file mode 100644 index 0000000..ffda54c --- /dev/null +++ b/src/auth-action-browser.ts @@ -0,0 +1,5 @@ +export function createActionAuth() { + throw new Error( + "[@octokit/auth] `createActionAuth` is not supported in browsers" + ); +}