UNPKG

@0xfutbol/id

Version:

React component library with shared providers for 0xFutbol ID

16 lines (15 loc) 579 B
export declare class AuthService { private readonly httpClient; constructor(backendUrl: string); claim(username: string, owner: string, message: string, signatureExpiration: number, userDetails?: Record<string, any>): Promise<void>; getJWT(username: string, message: string, expiration: number): Promise<string>; pre(address: string): Promise<{ claimed: boolean; username?: string; }>; sign(username: string, owner: string): Promise<{ claimed: boolean; signature: string; signatureExpiration: bigint; }>; }