mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
15 lines
434 B
TypeScript
15 lines
434 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
import { StackClientApp } from "@stackframe/react";
|
|
import { useNavigate } from "react-router-dom";
|
|
|
|
export const stackClientApp = new StackClientApp({
|
|
projectId: import.meta.env.VITE_STACK_PROJECT_ID,
|
|
publishableClientKey: import.meta.env.VITE_STACK_PUBLISHABLE_CLIENT_KEY,
|
|
baseUrl: import.meta.env.VITE_STACK_API_URL,
|
|
tokenStore: "cookie",
|
|
redirectMethod: {
|
|
useNavigate,
|
|
}
|
|
});
|