UNPKG

create-kalp-boilerplate

Version:

A Kalp CLI tool to generate a React boilerplate

8 lines (6 loc) 352 B
const REACT_APP_KALP_AUTH_URL = ''; // Add kalp auth URL here const REACT_APP_CLIENT_URL = ''; // Add this Application URL here, eg: if running locally use https://localhost:3000 export const clearStorageAndRedirect = () => { localStorage.clear(); window.location.href = `${REACT_APP_KALP_AUTH_URL}/login?redirect_url=${REACT_APP_CLIENT_URL}`; };