The minimalistic document archiving platform.
feat(auth): improved feedback for invalid origin url (#455)
Corentin Thomassetb33fde35d3e8
diff --git a/.changeset/three-ideas-fix.md b/.changeset/three-ideas-fix.mdnew file mode 100644index 00000000..e630010d--- /dev/null+++ b/.changeset/three-ideas-fix.md@@ -0,0 +1,7 @@+---+"@papra/app-client": patch+"@papra/app-server": patch+"@papra/docs": patch+---++Improved feedback message in case of invalid origin configurationdiff --git a/apps/docs/src/content/docs/02-self-hosting/01-using-docker.mdx b/apps/docs/src/content/docs/02-self-hosting/01-using-docker.mdxindex 6c912963..db5dc42f 100644--- a/apps/docs/src/content/docs/02-self-hosting/01-using-docker.mdx+++ b/apps/docs/src/content/docs/02-self-hosting/01-using-docker.mdx@@ -31,6 +31,7 @@ Launch Papra with default configuration using:docker run -d \--name papra \--restart unless-stopped \+ --env APP_BASE_URL=http://localhost:1221 \-p 1221:1221 \ghcr.io/papra-hq/papra:latest```@@ -69,6 +70,7 @@ For production deployments, mount host directories to preserve application datadocker run -d \--name papra \--restart unless-stopped \+ --env APP_BASE_URL=http://localhost:1221 \-p 1221:1221 \-v $(pwd)/papra-data:/app/app-data \--user $(id -u):$(id -g) \diff --git a/apps/docs/src/content/docs/04-resources/01-troubleshooting.mdx b/apps/docs/src/content/docs/04-resources/01-troubleshooting.mdxindex 8e51d782..7019f244 100644--- a/apps/docs/src/content/docs/04-resources/01-troubleshooting.mdx+++ b/apps/docs/src/content/docs/04-resources/01-troubleshooting.mdx@@ -24,5 +24,17 @@ To fix this, you can either:- Ensure that the directory is owned by the user running the container- Run the server as root (not recommended)+## Invalid application origin++Papra ensures [CSRF](https://en.wikipedia.org/wiki/Cross-site_request_forgery) protection by validating the Origin header in requests. This check ensures that requests originate from the application or a trusted source. Any request that does not originate from a trusted origin will be rejected.++If you are self-hosting Papra, you may encounter an error stating that the application origin is invalid while trying to login or register.++To fix this, you can either:++- Update the `APP_BASE_URL` environment variable to match the url of your application (e.g. `https://papra.my-homelab.tld`)+- Add the current url to the `TRUSTED_ORIGINS` environment variable if you need to allow multiple origins, comma separated. By default the `TRUSTED_ORIGINS` is set to the `APP_BASE_URL`+- If you are using a reverse proxy, you may need to add the url to the `TRUSTED_ORIGINS` environment variable+diff --git a/apps/papra-client/src/locales/de.yml b/apps/papra-client/src/locales/de.ymlindex 3d2446ea..ed2672ad 100644--- a/apps/papra-client/src/locales/de.yml+++ b/apps/papra-client/src/locales/de.yml@@ -546,6 +546,7 @@ api-errors.user.organization_invitation_limit_reached: Die maximale Anzahl an Eiapi-errors.demo.not_available: Diese Funktion ist in der Demo nicht verfügbarapi-errors.tags.already_exists: Ein Tag mit diesem Namen existiert bereits für diese Organisationapi-errors.internal.error: Beim Verarbeiten Ihrer Anfrage ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.+api-errors.auth.invalid_origin: Ungültige Anwendungs-Ursprung. Wenn Sie Papra selbst hosten, stellen Sie sicher, dass Ihre APP_BASE_URL-Umgebungsvariable mit Ihrer aktuellen URL übereinstimmt. Weitere Details finden Sie unter https://docs.papra.app/resources/troubleshooting/#invalid-application-origin# Not founddiff --git a/apps/papra-client/src/locales/en.yml b/apps/papra-client/src/locales/en.ymlindex 8f5d3825..ca759528 100644--- a/apps/papra-client/src/locales/en.yml+++ b/apps/papra-client/src/locales/en.yml@@ -546,6 +546,7 @@ api-errors.user.organization_invitation_limit_reached: The maximum number of invapi-errors.demo.not_available: This feature is not available in demoapi-errors.tags.already_exists: A tag with this name already exists for this organizationapi-errors.internal.error: An error occurred while processing your request. Please try again later.+api-errors.auth.invalid_origin: Invalid application origin. If you are self-hosting Papra, ensure your APP_BASE_URL environment variable matches your current url. For more details see https://docs.papra.app/resources/troubleshooting/#invalid-application-origin# Not founddiff --git a/apps/papra-client/src/locales/es.yml b/apps/papra-client/src/locales/es.ymlindex c52eeec0..32531b07 100644--- a/apps/papra-client/src/locales/es.yml+++ b/apps/papra-client/src/locales/es.yml@@ -546,6 +546,7 @@ api-errors.user.organization_invitation_limit_reached: Se ha alcanzado el númerapi-errors.demo.not_available: Esta función no está disponible en la demostraciónapi-errors.tags.already_exists: Ya existe una etiqueta con este nombre en esta organizaciónapi-errors.internal.error: Ocurrió un error al procesar tu solicitud. Por favor, inténtalo de nuevo.+api-errors.auth.invalid_origin: Origen de la aplicación inválido. Si estás alojando Papra, asegúrate de que la variable de entorno APP_BASE_URL coincida con tu URL actual. Para más detalles, consulta https://docs.papra.app/resources/troubleshooting/#invalid-application-origin# Not founddiff --git a/apps/papra-client/src/locales/fr.yml b/apps/papra-client/src/locales/fr.ymlindex 3f220dae..1d044b5e 100644--- a/apps/papra-client/src/locales/fr.yml+++ b/apps/papra-client/src/locales/fr.yml@@ -546,6 +546,7 @@ api-errors.user.organization_invitation_limit_reached: Le nombre maximum d'invitapi-errors.demo.not_available: Cette fonctionnalité n'est pas disponible dans la démoapi-errors.tags.already_exists: Un tag avec ce nom existe déjà pour cette organisationapi-errors.internal.error: Une erreur est survenue lors du traitement de votre requête. Veuillez réessayer.+api-errors.auth.invalid_origin: Origine de l'application invalide. Si vous hébergez Papra, assurez-vous que la variable d'environnement APP_BASE_URL correspond à votre URL actuelle. Pour plus de détails, consultez https://docs.papra.app/resources/troubleshooting/#invalid-application-origin# Not founddiff --git a/apps/papra-client/src/locales/it.yml b/apps/papra-client/src/locales/it.ymlindex bf70ad2f..6460730e 100644--- a/apps/papra-client/src/locales/it.yml+++ b/apps/papra-client/src/locales/it.yml@@ -546,6 +546,7 @@ api-errors.user.organization_invitation_limit_reached: È stato raggiunto il numapi-errors.demo.not_available: Questa funzionalità non è disponibile nella demoapi-errors.tags.already_exists: Esiste già un tag con questo nome per questa organizzazioneapi-errors.internal.error: Si è verificato un errore durante l'elaborazione della richiesta. Riprova.+api-errors.auth.invalid_origin: Origine dell'applicazione non valida. Se stai ospitando Papra, assicurati che la variabile di ambiente APP_BASE_URL corrisponda all'URL corrente. Per maggiori dettagli, consulta https://docs.papra.app/resources/troubleshooting/#invalid-application-origin# Not founddiff --git a/apps/papra-client/src/locales/pl.yml b/apps/papra-client/src/locales/pl.ymlindex 34de9551..baec55f0 100644--- a/apps/papra-client/src/locales/pl.yml+++ b/apps/papra-client/src/locales/pl.yml@@ -546,6 +546,7 @@ api-errors.user.organization_invitation_limit_reached: Osiągnięto maksymalnąapi-errors.demo.not_available: Ta funkcja nie jest dostępna w wersji demoapi-errors.tags.already_exists: Tag o tej nazwie już istnieje w tej organizacjiapi-errors.internal.error: Wystąpił błąd podczas przetwarzania żądania. Spróbuj ponownie później.+api-errors.auth.invalid_origin: Nieprawidłowa lokalizacja aplikacji. Jeśli hostujesz Papra, upewnij się, że zmienna środowiskowa APP_BASE_URL odpowiada bieżącemu adresowi URL. Aby uzyskać więcej informacji, zobacz https://docs.papra.app/resources/troubleshooting/#invalid-application-origin# Not founddiff --git a/apps/papra-client/src/locales/pt-BR.yml b/apps/papra-client/src/locales/pt-BR.ymlindex 21ff024f..a3b9fdae 100644--- a/apps/papra-client/src/locales/pt-BR.yml+++ b/apps/papra-client/src/locales/pt-BR.yml@@ -546,6 +546,7 @@ api-errors.user.organization_invitation_limit_reached: O número máximo de convapi-errors.demo.not_available: Este recurso não está disponível em ambiente de demonstraçãoapi-errors.tags.already_exists: Já existe uma tag com este nome nesta organizaçãoapi-errors.internal.error: Ocorreu um erro ao processar sua solicitação. Por favor, tente novamente.+api-errors.auth.invalid_origin: Origem da aplicação inválida. Se você está hospedando o Papra, certifique-se de que a variável de ambiente APP_BASE_URL corresponde à sua URL atual. Para mais detalhes, consulte https://docs.papra.app/resources/troubleshooting/#invalid-application-origin# Not founddiff --git a/apps/papra-client/src/locales/pt.yml b/apps/papra-client/src/locales/pt.ymlindex bc490e36..247948c7 100644--- a/apps/papra-client/src/locales/pt.yml+++ b/apps/papra-client/src/locales/pt.yml@@ -546,6 +546,7 @@ api-errors.user.organization_invitation_limit_reached: O número máximo de convapi-errors.demo.not_available: Este recurso não está disponível em ambiente de demonstraçãoapi-errors.tags.already_exists: Já existe uma etiqueta com este nome nesta organizaçãoapi-errors.internal.error: Ocorreu um erro ao processar a solicitação. Por favor, tente novamente.+api-errors.auth.invalid_origin: Origem da aplicação inválida. Se você está hospedando o Papra, certifique-se de que a variável de ambiente APP_BASE_URL corresponde à sua URL atual. Para mais detalhes, consulte https://docs.papra.app/resources/troubleshooting/#invalid-application-origin# Not founddiff --git a/apps/papra-client/src/locales/ro.yml b/apps/papra-client/src/locales/ro.ymlindex bd42d4fa..c8b77e67 100644--- a/apps/papra-client/src/locales/ro.yml+++ b/apps/papra-client/src/locales/ro.yml@@ -546,6 +546,7 @@ api-errors.user.organization_invitation_limit_reached: Numărul maxim de invitaapi-errors.demo.not_available: Această functie nu este disponibila în demoapi-errors.tags.already_exists: O etichetă cu acest nume există deja pentru aceasta organizațieapi-errors.internal.error: A apărut o eroare la procesarea cererii. Te rugăm să încerci din nou.+api-errors.auth.invalid_origin: Origine invalidă a aplicației. Dacă hospedezi Papra, asigură-te că variabila de mediu APP_BASE_URL corespunde URL-ului actual. Pentru mai multe detalii, consulta https://docs.papra.app/resources/troubleshooting/#invalid-application-origin# Not founddiff --git a/apps/papra-client/src/modules/auth/auth.services.ts b/apps/papra-client/src/modules/auth/auth.services.tsindex 179d1081..f02fb8d4 100644--- a/apps/papra-client/src/modules/auth/auth.services.ts+++ b/apps/papra-client/src/modules/auth/auth.services.ts@@ -49,12 +49,21 @@ export async function authWithProvider({ provider, config }: { provider: SsoProvconst isCustomProvider = config.auth.providers.customs.some(({ providerId }) => providerId === provider.key);if (isCustomProvider) {- signIn.oauth2({+ const { error } = await signIn.oauth2({providerId: provider.key,callbackURL: config.baseUrl,});++ if (error) {+ throw error;+ }+return;}- await signIn.social({ provider: provider.key as 'github' | 'google', callbackURL: config.baseUrl });+ const { error } = await signIn.social({ provider: provider.key as 'github' | 'google', callbackURL: config.baseUrl });++ if (error) {+ throw error;+ }}diff --git a/apps/papra-client/src/modules/auth/components/sso-provider-button.component.tsx b/apps/papra-client/src/modules/auth/components/sso-provider-button.component.tsxindex 7abe5ced..0857fe82 100644--- a/apps/papra-client/src/modules/auth/components/sso-provider-button.component.tsx+++ b/apps/papra-client/src/modules/auth/components/sso-provider-button.component.tsx@@ -1,34 +1,47 @@import type { Component } from 'solid-js';import { createSignal, Match, Switch } from 'solid-js';+import { useI18nApiErrors } from '@/modules/shared/http/composables/i18n-api-errors';import { cn } from '@/modules/shared/style/cn';import { Button } from '@/modules/ui/components/button';export const SsoProviderButton: Component<{ name: string; icon?: string; onClick: () => Promise<void>; label: string }> = (props) => {const [getIsLoading, setIsLoading] = createSignal(false);+ const [getError, setError] = createSignal<string | undefined>(undefined);+ const { getErrorMessage } = useI18nApiErrors();const onClick = async () => {setIsLoading(true);- await props.onClick();+ try {+ await props.onClick();+ } catch (error) {+ setError(getErrorMessage({ error }));+ // reset loading only in catch as the auth via sso can take a while before the redirection happens+ setIsLoading(false);+ }};return (- <Button variant="secondary" class="block w-full flex items-center justify-center gap-2" onClick={onClick} disabled={getIsLoading()}>+ <>+ <Button variant="secondary" class="block w-full flex items-center justify-center gap-2" onClick={onClick} disabled={getIsLoading()}>- <Switch>- <Match when={getIsLoading()}>- <span class="i-tabler-loader-2 animate-spin" />- </Match>+ <Switch>+ <Match when={getIsLoading()}>+ <span class="i-tabler-loader-2 animate-spin" />+ </Match>- <Match when={props.icon?.startsWith('i-')}>- <span class={cn(`size-4.5`, props.icon)} />- </Match>+ <Match when={props.icon?.startsWith('i-')}>+ <span class={cn(`size-4.5`, props.icon)} />+ </Match>- <Match when={props.icon}>- <img src={props.icon} alt={props.name} class="size-4.5" />- </Match>- </Switch>+ <Match when={props.icon}>+ <img src={props.icon} alt={props.name} class="size-4.5" />+ </Match>+ </Switch>- {props.label}- </Button>+ {props.label}+ </Button>++ {getError() && <p class="text-red-500">{getError()}</p>}+ </>);};diff --git a/apps/papra-client/src/modules/auth/pages/login.page.tsx b/apps/papra-client/src/modules/auth/pages/login.page.tsxindex 952f8287..c7943317 100644--- a/apps/papra-client/src/modules/auth/pages/login.page.tsx+++ b/apps/papra-client/src/modules/auth/pages/login.page.tsx@@ -6,6 +6,7 @@ import * as v from 'valibot';import { useConfig } from '@/modules/config/config.provider';import { useI18n } from '@/modules/i18n/i18n.provider';import { createForm } from '@/modules/shared/form/form';+import { useI18nApiErrors } from '@/modules/shared/http/composables/i18n-api-errors';import { Button } from '@/modules/ui/components/button';import { Checkbox, CheckboxControl, CheckboxLabel } from '@/modules/ui/components/checkbox';import { Separator } from '@/modules/ui/components/separator';@@ -21,6 +22,7 @@ export const EmailLoginForm: Component = () => {const navigate = useNavigate();const { config } = useConfig();const { t } = useI18n();+ const { createI18nApiError } = useI18nApiErrors({ t });const { form, Form, Field } = createForm({onSubmit: async ({ email, password, rememberMe }) => {@@ -31,7 +33,7 @@ export const EmailLoginForm: Component = () => {}if (error) {- throw error;+ throw createI18nApiError({ error });}},schema: v.object({diff --git a/apps/papra-client/src/modules/auth/pages/register.page.tsx b/apps/papra-client/src/modules/auth/pages/register.page.tsxindex 974166bd..3d920733 100644--- a/apps/papra-client/src/modules/auth/pages/register.page.tsx+++ b/apps/papra-client/src/modules/auth/pages/register.page.tsx@@ -6,6 +6,7 @@ import * as v from 'valibot';import { useConfig } from '@/modules/config/config.provider';import { useI18n } from '@/modules/i18n/i18n.provider';import { createForm } from '@/modules/shared/form/form';+import { useI18nApiErrors } from '@/modules/shared/http/composables/i18n-api-errors';import { Button } from '@/modules/ui/components/button';import { Separator } from '@/modules/ui/components/separator';import { TextField, TextFieldLabel, TextFieldRoot } from '@/modules/ui/components/textfield';@@ -20,6 +21,8 @@ export const EmailRegisterForm: Component = () => {const { config } = useConfig();const navigate = useNavigate();const { t } = useI18n();+ const { createI18nApiError } = useI18nApiErrors({ t });+const { form, Form, Field } = createForm({onSubmit: async ({ email, password, name }) => {const { error } = await signUp.email({@@ -30,7 +33,7 @@ export const EmailRegisterForm: Component = () => {});if (error) {- throw error;+ throw createI18nApiError({ error });}if (config.auth.isEmailVerificationRequired) {diff --git a/apps/papra-client/src/modules/i18n/i18n.models.test.ts b/apps/papra-client/src/modules/i18n/i18n.models.test.tsindex 0d299a6a..e05b2b4b 100644--- a/apps/papra-client/src/modules/i18n/i18n.models.test.ts+++ b/apps/papra-client/src/modules/i18n/i18n.models.test.ts@@ -70,13 +70,14 @@ describe('i18n models', () => {expect(t('hello')).to.eql('Hello!');});- test('the translator returns the key if the key is not in the dictionary', () => {+ test('the translator returns undefined if the key is not in the dictionary', () => {const dictionary = {hello: 'Hello!',};const t = createTranslator({ getDictionary: () => dictionary });- expect(t('world' as any)).to.eql('world');+ expect(t('world' as any)).to.eql(undefined);+ expect(t('world' as any, { name: 'John' })).to.eql(undefined);});test('the translator replaces the placeholders in the translation', () => {diff --git a/apps/papra-client/src/modules/i18n/i18n.models.ts b/apps/papra-client/src/modules/i18n/i18n.models.tsindex f925616b..22e03919 100644--- a/apps/papra-client/src/modules/i18n/i18n.models.ts+++ b/apps/papra-client/src/modules/i18n/i18n.models.ts@@ -36,15 +36,15 @@ export function createTranslator<Dict extends Record<string, string>>({ getDicticonsole.warn(`Translation not found for key: ${String(key)}`);}- let translation: string = translationFromDictionary ?? key;-- if (args) {- for (const [key, value] of Object.entries(args)) {- translation = translation.replace(new RegExp(`{{\\s*${key}\\s*}}`, 'g'), String(value));- }+ if (args && translationFromDictionary) {+ return Object.entries(args)+ .reduce(+ (acc, [key, value]) => acc.replace(new RegExp(`{{\\s*${key}\\s*}}`, 'g'), String(value)),+ String(translationFromDictionary),+ );}- return translation;+ return translationFromDictionary;};}diff --git a/apps/papra-client/src/modules/i18n/locales.types.ts b/apps/papra-client/src/modules/i18n/locales.types.tsindex 745604a4..0c392255 100644--- a/apps/papra-client/src/modules/i18n/locales.types.ts+++ b/apps/papra-client/src/modules/i18n/locales.types.ts@@ -485,6 +485,7 @@ export type LocaleKeys =| 'api-errors.demo.not_available'| 'api-errors.tags.already_exists'| 'api-errors.internal.error'+ | 'api-errors.auth.invalid_origin'| 'not-found.title'| 'not-found.description'| 'not-found.back-to-home'diff --git a/apps/papra-client/src/modules/shared/http/composables/i18n-api-errors.ts b/apps/papra-client/src/modules/shared/http/composables/i18n-api-errors.tsindex 63c656c2..2c6bf63b 100644--- a/apps/papra-client/src/modules/shared/http/composables/i18n-api-errors.ts+++ b/apps/papra-client/src/modules/shared/http/composables/i18n-api-errors.ts@@ -2,28 +2,46 @@ import type { LocaleKeys } from '@/modules/i18n/locales.types';import { get } from 'lodash-es';import { useI18n } from '@/modules/i18n/i18n.provider';+function codeToKey(code: string): LocaleKeys {+ // Better auth may returns different error codes like INVALID_ORIGIN, INVALID_CALLBACKURL when the origin is invalid+ // codes are here https://github.com/better-auth/better-auth/blob/canary/packages/better-auth/src/api/middlewares/origin-check.ts#L71 (in lower case)+ if (code.match(/^INVALID_[A-Z]+URL$/) || code === 'INVALID_ORIGIN') {+ return `api-errors.auth.invalid_origin`;+ }++ return `api-errors.${code}` as LocaleKeys;+}+export function useI18nApiErrors({ t = useI18n().t }: { t?: ReturnType<typeof useI18n>['t'] } = {}) {- const getTranslationFromApiErrorCode = ({ code }: { code: string }) => {- return t(`api-errors.${code}` as LocaleKeys);- };+ const getDefaultErrorMessage = () => t('api-errors.default');++ const getErrorMessage = (args: { error: unknown } | { code: string }) => {+ if ('code' in args) {+ const { code } = args;+ return t(codeToKey(code)) ?? getDefaultErrorMessage();+ }- const getTranslationFromApiError = ({ error }: { error: unknown }) => {- const code = get(error, 'data.error.code') ?? get(error, 'code');+ if ('error' in args) {+ const { error } = args;+ const code = get(error, 'data.error.code') ?? get(error, 'code');+ const translation = code ? t(codeToKey(code)) : undefined;- if (!code) {- return t('api-errors.default');+ if (translation) {+ return translation;+ }++ if (typeof error === 'object' && error && 'message' in error && typeof error.message === 'string') {+ return error.message;+ }}- return getTranslationFromApiErrorCode({ code });+ return getDefaultErrorMessage();};return {- getErrorMessage: (args: { error: unknown } | { code: string }) => {- if ('error' in args) {- return getTranslationFromApiError({ error: args.error });- }-- return getTranslationFromApiErrorCode({ code: args.code });+ getErrorMessage,+ createI18nApiError: (args: { error: unknown } | { code: string }) => {+ return new Error(getErrorMessage(args));},};}diff --git a/apps/papra-server/src/modules/app/auth/auth.services.ts b/apps/papra-server/src/modules/app/auth/auth.services.tsindex 95dcbedf..f77236f8 100644--- a/apps/papra-server/src/modules/app/auth/auth.services.ts+++ b/apps/papra-server/src/modules/app/auth/auth.services.ts@@ -107,6 +107,27 @@ export function getAuth({deleteUser: { enabled: false },},plugins: [+ // Would love to have this but it messes with the error handling in better-auth client+ // {+ // id: 'better-auth-error-adapter',+ // onResponse: async (res) => {+ // // Transform better auth error to our own error+ // if (res.status < 400) {+ // return { response: res };+ // }++ // const body = await res.clone().json();+ // const code = get(body, 'code', 'unknown');++ // throw createError({+ // message: get(body, 'message', 'Unknown error'),+ // code: `auth.${code.toLowerCase()}`,+ // statusCode: res.status as ContentfulStatusCode,+ // isInternal: res.status >= 500,+ // });+ // },+ // },+...(config.auth.providers.customs.length > 0? [genericOAuth({ config: config.auth.providers.customs })]: []),diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 9b9ea4fc..96dc0a43 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -16,8 +16,8 @@ catalogs:specifier: ^3.0.2version: 3.2.4better-auth:- specifier: ^1.2.8- version: 1.2.8+ specifier: 1.3.4+ version: 1.3.4eslint:specifier: ^9.30.1version: 9.30.1@@ -146,7 +146,7 @@ importers:version: 0.64.1better-auth:specifier: 'catalog:'- version: 1.2.8class-variance-authority:specifier: ^0.7.1version: 0.7.1@@ -294,7 +294,7 @@ importers:version: 1.7.1better-auth:specifier: 'catalog:'- version: 1.2.8c12:specifier: ^3.0.4version: 3.0.4([email protected])@@ -3991,11 +3991,19 @@ packages:resolution: {integrity: sha512-9IIS3UPrvIa1Ej+lVDdDwO7zLehjqsaByECw0bu2RRGP73jALm6FYbzI5gWbgHLvNdkvfXB5YrSbocZdOS0c0w==}- resolution: {integrity: sha512-y8ry7ZW3/3ZIr82Eo1zUDtMzdoQlFnwNuZ0+b0RxoNZgqmvgTIc/0tCDC7NDJerqSu4UCzer0dvYxBsv3WMIGg==}+ resolution: {integrity: sha512-JbZYam6Cs3Eu5CSoMK120zSshfaKvrCftSo/+v7524H1RvhryQ7UtMbzagBcXj0Digjj8hZtVkkR4tTZD/wK2g==}+ peerDependencies:+ react: ^18.0.0 || ^19.0.0+ react-dom: ^18.0.0 || ^19.0.0+ peerDependenciesMeta:+ react:+ optional: true+ react-dom:+ optional: true- resolution: {integrity: sha512-MOM01EMZFMzApWq9+WfqAnl2+DzFoMNp4H+lTFE1p7WF4evMeaQAAcOhI1WwMjITV4PGIWJ3Vn5GciQ5VHXbIA==}+ resolution: {integrity: sha512-auqdP9lnNOli9tKpZIiv0nEIwmmyaD/RotM3Mucql+Ef88etoZi/t7Ph5LjlmZt/hiSahhNTt6YVnx6++rziXA==}resolution: {integrity: sha512-pbnl5XzGBdrFU/wT4jqmJVPn2B6UHPBOhzMQkY/SPUPB6QtUXtmBHBIwCbXJol93mOpGMnQyP/+BB19q04xj7g==}@@ -8260,8 +8268,8 @@ packages:resolution: {integrity: sha512-idA2YXwpCdqUSKRCACDE6ItZD9TZzy3OZMtpfLoh6oPR47lipysRrJfjzMqFxQ3uJuUPyUeWe1r9vLH33xO/Qw==}- resolution: {integrity: sha512-fuIKbQAWQl22Ba5d1quwEETQYjqnpKVyZIWAhbnnHgnDd3a+z4YgEfkI5SZ2xMELnLAXo/Flk2uXgysZNf0uaA==}+ resolution: {integrity: sha512-2IVHb9h4Mt6+UXkyMs0XbfICUh1eUrlJJAOupBHUhLRnKkruawyDddYRCs0Eizt900ntIMk9/4RksYl+FgSpcQ==}resolution: {integrity: sha512-14fwWQtU3pH4dE0dOpdMiWjddcH+QzKIgk1cl8epwSE7yag43k/AD/m4L6+K7DytAOr9gGBe3/EXj9g7cdostg==}@@ -12540,7 +12548,7 @@ snapshots:is-alphanumerical: 2.0.1is-decimal: 2.0.1dependencies:'@better-auth/utils': 0.2.5'@better-fetch/fetch': 1.1.18@@ -12548,14 +12556,17 @@ snapshots:'@noble/hashes': 1.8.0'@simplewebauthn/browser': 13.1.0'@simplewebauthn/server': 13.1.1- better-call: 1.0.11+ better-call: 1.0.13defu: 6.1.4jose: 5.10.0kysely: 0.28.2nanostores: 0.11.4- zod: 3.25.73+ zod: 4.0.15+ optionalDependencies:+ react: 18.3.1+ react-dom: 19.0.0([email protected])dependencies:'@better-fetch/fetch': 1.1.18rou3: 0.5.1@@ -17809,7 +17820,7 @@ snapshots:- [email protected]: {}+ [email protected]: {}optionalDependencies:diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 383b36c9..f3d0f656 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -10,7 +10,7 @@ catalog:typescript: ^5.6.2vitest: ^3.0.5'@vitest/coverage-v8': ^3.0.2- better-auth: ^1.2.8+ better-auth: 1.3.4unbuild: ^3.5.0ignoredBuiltDependencies: