PageSourceSearch

https://trystan.net/assets/useTempCredentials-D9gfGESC.js

js trystan.net collected 2026-09-26 06:20:53 UTC 2,681 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`3fb85819`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`d3ee2fb2-21f1-4d31-aa37-09c483934188`,e._sentryDebugIdIdentifier=`sentry-dbid-d3ee2fb2-21f1-4d31-aa37-09c483934188`)}catch{}})();import{t as e}from"./compiler-runtime-BQBjb8-F.js";import{E as t,S as n,i as r}from"./useFetch-BoJLT2pS.js";import{t as i}from"./useQuery-CmicRdJh.js";import{n as a}from"./useMe-D7pJMmC1.js";var o=e(),s=function(e){return e.AWS_STORAGE_TOKEN=`aws-storage-token`,e.CELLO_TOKEN=`cello-token`,e.ENTRI_TOKEN=`entri-token`,e.FILE_RESOLVER_TOKEN=`file-resolver-token`,e.FIREBASE_TOKEN=`firebase-token`,e.GETSTREAM_TOKEN=`getstream-token`,e.PLAID_BANK_TOKEN=`plaid-bank-token`,e}({});function c(){let e=(0,o.c)(8),{post:i}=r(),c=t(),l;e[0]!==i||e[1]!==c?(l=async function(e){let t=await i(`/api/temp-credentials`,{resource:s.FILE_RESOLVER_TOKEN,...e?{userDetails:e}:{}});return t.status===n.SUCCESS&&c.setQueryData([s.FILE_RESOLVER_TOKEN,e.email],t.data[`temp-credential`]),t},e[0]=i,e[1]=c,e[2]=l):l=e[2];let u=l,d;e[3]===u?d=e[4]:(d={mutationFn:u},e[3]=u,e[4]=d);let{isPending:f,mutateAsync:p}=a(d),m;return e[5]!==p||e[6]!==f?(m={getStorageToken:p,isPending:f},e[5]=p,e[6]=f,e[7]=m):m=e[7],m}function l(){let e=(0,o.c)(7),{post:t}=r(),n;e[0]===t?n=e[1]:(n=async function(){return await t(`/api/temp-credentials`,{resource:s.ENTRI_TOKEN})},e[0]=t,e[1]=n);let i=n,c;e[2]===i?c=e[3]:(c={mutationFn:i},e[2]=i,e[3]=c);let{isPending:l,mutateAsync:u}=a(c),d;return e[4]!==u||e[5]!==l?(d={getEntriToken:u,isPending:l},e[4]=u,e[5]=l,e[6]=d):d=e[6],d}function u(e,a){let c=(0,o.c)(13),{post:l}=r(),u=t(),d;c[0]!==l||c[1]!==u||c[2]!==e?(d=async function(){let t=await l(`/api/temp-credentials`,e,{headers:{"x-account":void 0}});return t.status===n.SUCCESS?(e.resource===s.FILE_RESOLVER_TOKEN&&typeof sessionStorage<`u`&&u.setQueryData([s.FILE_RESOLVER_TOKEN,...e.userDetails?Object.values(e.userDetails):[]],t.data[`temp-credential`]),sessionStorage.setItem(e.resource,t.data[`temp-credential`].sessionToken),t.data[`temp-credential`]):null},c[0]=l,c[1]=u,c[2]=e,c[3]=d):d=c[3];let f=d,p;c[4]===e.userDetails?p=c[5]:(p=e.userDetails?Object.values(e.userDetails).filter(Boolean):[],c[4]=e.userDetails,c[5]=p);let m;c[6]!==e.resource||c[7]!==p?(m=[e.resource,...p],c[6]=e.resource,c[7]=p,c[8]=m):m=c[8];let h;return c[9]!==a||c[10]!==f||c[11]!==m?(h={queryFn:f,queryKey:m,...a},c[9]=a,c[10]=f,c[11]=m,c[12]=h):h=c[12],i(h)}export{s as i,c as n,u as r,l as t};
2//# sourceMappingURL=useTempCredentials-D9gfGESC.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.