diff --git a/src/auth.ts b/src/auth.ts index e032dde..68dfb12 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -6,11 +6,7 @@ export interface ClientKey { } export const isAuthenticated = () => { - if (!LocalStorage.hasItem('node-authorized')) { - return false - } - - return LocalStorage.getItem('node-authorized') + return LocalStorage.hasItem('client-key') } export const getClientKey = (): ClientKey | null => { diff --git a/src/components/NearLogin.vue b/src/components/NearLogin.vue index 48ea7a7..7a71c2c 100644 --- a/src/components/NearLogin.vue +++ b/src/components/NearLogin.vue @@ -10,34 +10,33 @@