MCPcopy
hub / github.com/marmelab/react-admin / get

Function get

packages/ra-core/src/auth/addRefreshAuthToAuthProvider.ts:30–43  ·  view source on GitHub ↗
(_, name)

Source from the content-addressed store, hash-verified

28): AuthProviderType => {
29 const proxy = new Proxy(provider, {
30 get(_, name) {
31 const shouldIntercept =
32 AuthProviderInterceptedMethods.includes(name.toString()) &&
33 provider[name.toString()] != null;
34
35 if (shouldIntercept) {
36 return async (...args: any[]) => {
37 await refreshAuth();
38 return provider[name.toString()](...args);
39 };
40 }
41
42 return provider[name.toString()];
43 },
44 });
45
46 return proxy;

Callers 15

handleImageUploadFunction · 0.50
useListFunction · 0.50
getRecordForLocaleFunction · 0.50
useInputFunction · 0.50
FilterLiveFormFunction · 0.50
getInputValueFunction · 0.50
FormDataConsumerViewFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected