UNPKG

steem-auth-vue-temp

Version:

A Vue 3 authentication component for Steem blockchain and Echelon sidechain

22 lines (20 loc) 769 B
import { IAccount } from '../interfaces'; interface AuthState { isAuthenticated: boolean; username: string; account: IAccount | null; loginAuth: 'steem' | 'keychain' | 'steemlogin'; } interface AuthStore { state: AuthState; slogin: (access_token: string) => Promise<void>; logout: () => void; handleLogin: (username: string, keychainLogin: boolean, posting_key?: string) => Promise<void>; checkUser: () => Promise<void>; validatePostingKey: (username: string, postingKey: string) => Promise<boolean>; get username(): string; get loginAuth(): 'steem' | 'keychain' | 'steemlogin'; } export declare const provideAuthStore: () => AuthStore; export declare const useAuthStore: () => AuthStore; export {};