Skip to main content

IAuthHandler.handleAuthorizationRequest() method

unpacks authorization request

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; }>