UNPKG

@reclaimprotocol/attestor-core

Version:

<div> <div> <img src="https://raw.githubusercontent.com/reclaimprotocol/.github/main/assets/banners/Attestor-Core.png" /> </div> </div>

8 lines (7 loc) 518 B
import { AuthenticatedUserData, AuthenticationRequest, ServiceSignatureType } from '../proto/api'; export declare function assertValidAuthRequest(request: AuthenticationRequest | undefined, signatureType: ServiceSignatureType): Promise<void>; /** * Create an authentication request with the given data and private key, * which can then be used to authenticate with the service. */ export declare function createAuthRequest(_data: Partial<AuthenticatedUserData>, privateKey: string): Promise<AuthenticationRequest>;