SvelteKit: provider route not found when using signIn
from @auth/sveltekit/client
#12753
-
I'm trying out Everything seems to work except the I've been testing via this repo which has a <script lang="ts">
import { page } from "$app/state";
import { signIn, signOut } from "@auth/sveltekit/client";
import { SignIn, SignOut } from "@auth/sveltekit/components";
</script>
{#if page.data.session}
{@const user = page.data.session.user}
<span>{user?.name ?? user?.email}</span>
<div class="buttons">
<button onclick={() => signOut()}>💻 sign out</button>
<SignOut>
<div slot="submitButton">🤖 sign out</div>
</SignOut>
</div>
{:else}
<span>you are not signed in :(</span>
<div class="buttons">
<button onclick={() => signIn("github")}> 💻 sign in </button>
<SignIn provider="github">
<div slot="submitButton">🤖 sign in</div>
</SignIn>
</div>
{/if} Passing an empty string removes the error, but doesn't let you sign in (which makes sense!): -<button onclick={() => signIn("github")}> 💻 sign in </button>
+<button onclick={() => signIn("")}> 💻 sign in </button> Any tips? Why would the action work via the form components but fail via the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Seems like Ah, looks like it is known: |
Beta Was this translation helpful? Give feedback.
Seems like
@auth/sveltekit@1.8.0
is the issue as downgrading to1.7.4
fixessignIn
!Ah, looks like it is known: