IAuthHandler.handleAuthorizationRequest() method
unpacks authorization request
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; }>