Skip to content

Commit

Permalink
fix(core): auth imports (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
deini committed Mar 15, 2024
1 parent 8ff2eb6 commit 46b0656
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/rotten-lizards-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bigcommerce/catalyst-core": patch
---

fix auth imports, was causing issues with --turbo
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { isRedirectError } from 'next/dist/client/components/redirect';

import { Credentials, signIn } from 'auth';
import { Credentials, signIn } from '~/auth';

export type State = { status: 'idle' } | { status: 'failed' };

Expand Down
2 changes: 1 addition & 1 deletion apps/core/app/api/auth/[...nextauth]/route.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { handlers } from 'auth';
import { handlers } from '~/auth';

export const { GET, POST } = handlers;
2 changes: 1 addition & 1 deletion apps/core/middlewares/with-auth.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { auth } from 'auth';
import { auth } from '~/auth';

import { type MiddlewareFactory } from './compose-middlewares';

Expand Down

0 comments on commit 46b0656

Please sign in to comment.