Skip to content

Instantly share code, notes, and snippets.

View fcandi's full-sized avatar
💭
Working on a Mastodon Fork

Andreas Constantin Meyer fcandi

💭
Working on a Mastodon Fork
View GitHub Profile
import axios from 'axios';
import applyConverters from 'axios-case-converter';
import { objectKeysToCamelCase } from 'utils';
export const redirectToLogin = () => {
window.location.href = process.env.AUTH_URL;
};
export const getAccessToken = () =>
(JSON.parse(window.localStorage.getItem('auth')) || {}).accessToken;