mirror of
https://github.com/Dan6erbond/sk-auth.git
synced 2025-04-18 01:17:01 +02:00
Correctly import mergePath
This commit is contained in:
parent
19bff9a39c
commit
8af471699e
@ -2,6 +2,7 @@
|
|||||||
import { page } from "@sveltejs/kit/assets/runtime/app/stores"; */
|
import { page } from "@sveltejs/kit/assets/runtime/app/stores"; */
|
||||||
import type { LoadInput } from "@sveltejs/kit";
|
import type { LoadInput } from "@sveltejs/kit";
|
||||||
import type { ClientRequestConfig } from "./types";
|
import type { ClientRequestConfig } from "./types";
|
||||||
|
import { mergePath } from "./helpers";
|
||||||
|
|
||||||
interface SignInConfig extends ClientRequestConfig {
|
interface SignInConfig extends ClientRequestConfig {
|
||||||
redirectUrl?: string;
|
redirectUrl?: string;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
/* import { session as session$ } from "$app/stores"; */
|
/* import { session as session$ } from "$app/stores"; */
|
||||||
|
|
||||||
import type { ClientRequestConfig } from "./types";
|
import type { ClientRequestConfig } from "./types";
|
||||||
|
import { mergePath } from "./helpers";
|
||||||
|
|
||||||
export async function signOut(config?: ClientRequestConfig) {
|
export async function signOut(config?: ClientRequestConfig) {
|
||||||
let res = await fetch(mergePath(["/api/auth", config?.basePath ?? null], "signout"), {
|
let res = await fetch(mergePath(["/api/auth", config?.basePath ?? null], "signout"), {
|
||||||
|
Loading…
Reference in New Issue
Block a user