Skip to content

Commit 0de2a92

Browse files
committed
Enable dev auth for prs
1 parent f049eae commit 0de2a92

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/app/src/app/overmind/internalActions.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,10 @@ export const signInGithub: Action<
9898
{ useExtraScopes: boolean },
9999
Promise<string>
100100
> = ({ effects }, options) => {
101-
const authPath = process.env.LOCAL_SERVER
102-
? '/auth/dev'
103-
: `/auth/github${options.useExtraScopes ? '?scope=user:email,repo' : ''}`;
101+
const authPath =
102+
process.env.LOCAL_SERVER || 'STAGING_BRANCH' in process.env
103+
? '/auth/dev'
104+
: `/auth/github${options.useExtraScopes ? '?scope=user:email,repo' : ''}`;
104105

105106
const popup = effects.browser.openPopup(authPath, 'sign in');
106107

0 commit comments

Comments
 (0)