hongbo-miao/hongbomiao.com

View on GitHub
web/src/auth/utils/getAuthHeaders.ts

Summary

Maintainability
A
0 mins
Test Coverage
import Me from '../types/Me';

const getAuthHeaders = (me: Me): Record<string, string> => {
  return { Authorization: `Bearer ${me.jwtToken}` };
};

export default getAuthHeaders;