8 lines
212 B
TypeScript
8 lines
212 B
TypeScript
export const getUser = () => {
|
|
return JSON.parse(localStorage.getItem('timeline_user') ?? "{}");
|
|
}
|
|
|
|
export const getAuthization = () => {
|
|
const user = getUser();
|
|
return `Bearer+${user.accessToken}`;
|
|
} |