Compare commits

2 Commits

Author SHA1 Message Date
42263c2e7b Merge pull request 'more auth ree' (#12) from development into main
All checks were successful
CI/CD Pipeline / Build and Push App Docker Image (push) Successful in 2m30s
CI/CD Pipeline / Build and Push PocketBase Docker Image (push) Successful in 8s
CI/CD Pipeline / Deploy to Kubernetes (push) Successful in 48s
Reviewed-on: #12
2026-03-02 20:29:51 -06:00
yohlo
152235dd14 more auth ree
All checks were successful
CI/CD Pipeline / Build and Push App Docker Image (push) Successful in 2m36s
CI/CD Pipeline / Build and Push PocketBase Docker Image (push) Successful in 10s
CI/CD Pipeline / Deploy to Kubernetes (push) Successful in 45s
2026-03-02 20:28:49 -06:00

View File

@@ -29,9 +29,16 @@ export const fetchMe = createServerFn()
logger.info("FetchMe: Error caught", {
message: error?.message,
isResponse: error instanceof Response,
status: error instanceof Response ? error.status : error?.response?.status
status: error instanceof Response ? error.status : error?.response?.status,
hasOptions: !!error?.options,
redirectTo: error?.options?.to
});
if (error?.options?.to && error?.options?.statusCode) {
logger.info("FetchMe: Redirect detected, re-throwing", error.options);
throw error;
}
if (error instanceof Response) {
const status = error.status;
if (status === 440) {