You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ctk/services/frontend/src/hooks/auth.ts

11 lines
257 B
TypeScript

import { LOCAL_STORAGE } from "../constants"
export const useLocalStorageAuth = () => {
const localStorageData = localStorage.getItem(LOCAL_STORAGE);
if (localStorageData) {
const authData = JSON.parse(localStorageData);
return authData
}
}