Dan6erbond / sk-auth

Authentication library for use with SvelteKit featuring built-in OAuth providers and zero restriction customization!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReferenceError: mergePath is not defined

vhscom opened this issue · comments

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

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) {

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

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

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