MCPcopy Create free account
hub / github.com/flatlogic/react-material-admin / findMe

Function findMe

src/context/UserContext.js:205–212  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

203}
204
205async function findMe() {
206 if (config.isBackend) {
207 const response = await axios.get('/auth/me');
208 return response.data;
209 } else {
210 return mockUser;
211 }
212}
213
214export function authError(payload) {
215 return {

Callers 1

doInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected