refactored out of src packages

This commit is contained in:
2026-04-04 12:55:10 +05:30
parent 8a285bbdbe
commit 9871dac5c2
9 changed files with 0 additions and 0 deletions

15
react-auth/token.ts Normal file
View File

@@ -0,0 +1,15 @@
const TOKEN_KEY = "token";
export const tokenStore = {
get(): string | null {
return localStorage.getItem(TOKEN_KEY);
},
set(token: string) {
localStorage.setItem(TOKEN_KEY, token);
},
clear() {
localStorage.removeItem(TOKEN_KEY);
},
};