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
Parameter | Type | Description |
---|---|---|
did | DID | sender DID |
request | Uint8Array | raw byte message |
opts | AuthHandlerOptions | (Optional) |
Returns:
Promise<{ token: string; authRequest: AuthorizationRequestMessage; authResponse: AuthorizationResponseMessage; }>
Promise<{ token: string; authRequest: AuthorizationRequestMessage; authResponse: AuthorizationResponseMessage; }>