import { createAuthClient } from "better-auth/client"
import { createAuthClient as createAuthClientReact } from "better-auth/react"
const options = {
basePath: '/auth/api',
baseURL: 'https://api.soler.araarastudios.net',
cookieOptions: {
// Match the backend cookie settings
sameSite: 'none', // Allow cross-site cookies
secure: true, // Required for SameSite=None
path: '/',
},
}
export const authClient = createAuthClient({
...options
})
export const authClientReact = createAuthClientReact({
...options
})
import { createAuthClient } from "better-auth/client"
import { createAuthClient as createAuthClientReact } from "better-auth/react"
const options = {
basePath: '/auth/api',
baseURL: 'https://api.soler.araarastudios.net',
cookieOptions: {
// Match the backend cookie settings
sameSite: 'none', // Allow cross-site cookies
secure: true, // Required for SameSite=None
path: '/',
},
}
export const authClient = createAuthClient({
...options
})
export const authClientReact = createAuthClientReact({
...options
})