Skip to content

Commit

Permalink
Merge pull request #39 from boriscallens/fix-auth
Browse files Browse the repository at this point in the history
SveltekitAuth signature changed
  • Loading branch information
boriscallens authored Apr 9, 2024
2 parents 93ffb65 + d705e1b commit d9deef5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/hooks.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ import FakeProvider from "$lib/auth/FakeCredentials";
let providers = [BarelyAuth0()];
if(dev) providers = [BarelyAuth0(), FakeProvider()];

//@ts-expect-error issue https://github.com/nextauthjs/next-auth/issues/6174
export const handle = SvelteKitAuth({providers});
export const { handle } = SvelteKitAuth({providers});
2 changes: 1 addition & 1 deletion src/lib/auth/BarelyAuth0.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AUTH0_CLIENT_ID, AUTH0_CLIENT_SECRET, AUTH0_ISSUER_BASE_URL } from "$env/static/private";
import type { Provider } from "@auth/core/providers";
import Auth0, { type Auth0Profile } from "@auth/core/providers/auth0";
import Auth0, { type Auth0Profile } from "@auth/sveltekit/providers/auth0";

export default function BarelyAuth0(): Provider<Auth0Profile> {
return Auth0({
Expand Down

0 comments on commit d9deef5

Please sign in to comment.