UNPKG

@lens-protocol/react

Version:

Interacting with the Lens Protocol API using React.

14 lines (13 loc) 749 B
import { SafeApolloClient } from '@lens-protocol/api-bindings'; import { ICredentialsGateway, IResettableCredentialsGateway, LogoutReason } from '@lens-protocol/domain/use-cases/authentication'; import { IStorage } from '@lens-protocol/storage'; import { JwtCredentials } from "./JwtCredentials.js"; export declare class CredentialsGateway implements ICredentialsGateway, IResettableCredentialsGateway { private readonly credentialsStorage; private apolloClient; constructor(credentialsStorage: IStorage<JwtCredentials>, apolloClient: SafeApolloClient); getCredentials(): Promise<JwtCredentials | null>; save(credentials: JwtCredentials): Promise<void>; invalidate(reason: LogoutReason): Promise<void>; private revoke; }