MCPcopy Create free account
hub / github.com/amigoscode/full-stack-professional / getAuthConfig

Function getAuthConfig

frontend/react/src/services/client.js:3–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import axios from 'axios';
2
3const getAuthConfig = () => ({
4 headers: {
5 Authorization: `Bearer ${localStorage.getItem("access_token")}`
6 }
7})
8
9export const getCustomers = async () => {
10 try {

Callers 4

getCustomersFunction · 0.85
updateCustomerFunction · 0.85
deleteCustomerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected