Skip to content

Commit

Permalink
inheritdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Jan 23, 2024
1 parent a22e1cc commit 0b405ea
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions src/iden3comm/handlers/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,7 @@ export class AuthHandler implements IAuthHandler {
) {}

/**
* unpacks authorization request
* @public
* @param {Uint8Array} request - raw byte message
* @returns `Promise<AuthorizationRequestMessage>`
* @inheritdoc IAuthHandler#parseAuthorizationRequest
*/
async parseAuthorizationRequest(request: Uint8Array): Promise<AuthorizationRequestMessage> {
const { unpackedMessage: message } = await this._packerMgr.unpack(request);
Expand All @@ -190,15 +187,7 @@ export class AuthHandler implements IAuthHandler {
}

/**
* unpacks authorization request and packs authorization response
* @public
* @param {did} did - sender DID
* @param {Uint8Array} request - raw byte message
* @returns `Promise<{
token: string;
authRequest: AuthorizationRequestMessage;
authResponse: AuthorizationResponseMessage;
}>`
* @inheritdoc IAuthHandler#handleAuthorizationRequest
*/
async handleAuthorizationRequest(
did: DID,
Expand Down Expand Up @@ -342,16 +331,8 @@ export class AuthHandler implements IAuthHandler {
}

/**
* handle authorization response
* @public
* @param {AuthorizationResponseMessage} response - auth response
* @param {AuthorizationRequestMessage} request - auth request
* @param {AuthResponseHandlerOptions} opts - options
* @returns `Promise<{
request: AuthorizationRequestMessage;
response: AuthorizationResponseMessage;
}>`
*/
* @inheritdoc IAuthHandler#handleAuthorizationResponse
*/
async handleAuthorizationResponse(
response: AuthorizationResponseMessage,
request: AuthorizationRequestMessage,
Expand Down

0 comments on commit 0b405ea

Please sign in to comment.