Dan6erbond / sk-auth

Authentication library for use with SvelteKit featuring built-in OAuth providers and zero restriction customization!
MIT License
578 stars 70 forks source link

ReferenceError: mergePath is not defined #74

Closed vhscom closed 2 years ago

vhscom commented 2 years ago

The library throws an error when attempting to run signOut in version 0.4.1. It seems mergePath didn't make it into the client bundle. Here's a workaround: https://github.com/vhscom/svelte-headlessui-starter/blob/trunk/src/routes/account/signout.ts

ar4hc commented 2 years ago

if i don't miss some js black magic here, i think in client/signIn.ts and signOut.ts this import is missing:

import { mergePath } from "./helpers";

and helpers does not export the mergePath function:

export function mergePath(basePaths: (string | null)[], path: string) {
vhscom commented 2 years ago

@ar4hc there's a pull to resolve this in #75

ar4hc commented 2 years ago

@ar4hc there's a pull to resolve this in #75

Found that after i made my comment... :( sry for the noise.