UNPKG

@useorbis/db-sdk

Version:

Orbis' Typescript SDK for building open-data experiences.

19 lines (18 loc) 781 B
import { SiwxMessage } from "@didtools/cacao"; import { AuthUserInformation, AuthOptions, ISiwxAuth, SignedSiwx } from "../types/auth.js"; import { ISolProvider, IGenericSignerProvider, SupportedChains } from "../types/providers.js"; import { DID } from "dids"; import { DIDSession } from "did-session"; export declare class OrbisSolanaAuth implements ISiwxAuth { #private; orbisAuthId: string; chain: SupportedChains; constructor(provider: ISolProvider | IGenericSignerProvider); get provider(): IGenericSignerProvider; getUserInformation(): Promise<AuthUserInformation>; signSiwx(siwx: SiwxMessage): Promise<SignedSiwx>; authenticateDid({ siwxOverwrites, params }?: AuthOptions): Promise<{ did: DID; session: DIDSession; }>; }