Skip to main content

AuthHandler.handleAuthorizationRequest() method

unpacks authorization request and packs authorization response

Signature:

handleAuthorizationRequest(did: DID, request: Uint8Array, opts?: AuthHandlerOptions): Promise<{
token: string;
authRequest: AuthorizationRequestMessage;
authResponse: AuthorizationResponseMessage;
}>;

Parameters

ParameterTypeDescription
didDIDsender DID
requestUint8Arrayraw byte message
optsAuthHandlerOptions(Optional)

Returns:

Promise<{ token: string; authRequest: AuthorizationRequestMessage; authResponse: AuthorizationResponseMessage; }>

Promise<{ token: string; authRequest: AuthorizationRequestMessage; authResponse: AuthorizationResponseMessage; }>