Skip to content

Commit

Permalink
fixing doc syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
erdimaden committed May 13, 2024
1 parent 96dc7eb commit 54baa6e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/coinbase/authenticator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class CoinbaseAuthenticator {
private apiKey: string;
private privateKey: string;

/*
/**
* Initializes the Authenticator.
* @constructor
* @param {string} apiKey - The API key name.
Expand All @@ -21,7 +21,7 @@ export class CoinbaseAuthenticator {
this.privateKey = privateKey;
}

/*
/**
* Middleware to intercept requests and add JWT to the Authorization header for AxiosInterceptor
* @param {MiddlewareRequestType} config - The request configuration.
* @returns {MiddlewareRequestType} The request configuration with the Authorization header added.
Expand All @@ -38,7 +38,7 @@ export class CoinbaseAuthenticator {
return config;
}

/*
/**
* Builds the JWT for the given API endpoint URI. The JWT is signed with the API key's private key.
* @param {string} url - The URI of the API endpoint.
* @param {string} method - The HTTP method of the request.
Expand Down Expand Up @@ -87,7 +87,7 @@ export class CoinbaseAuthenticator {
}
}

/*
/**
* Extracts the PEM key from the given private key string.
* @param {string} privateKeyString - The private key string.
* @returns {string} The PEM key.
Expand All @@ -104,7 +104,7 @@ export class CoinbaseAuthenticator {
throw InvalidAPIKeyFormat;
}

/*
/**
* Generates a random nonce for the JWT.
* @returns {string}
*/
Expand Down

0 comments on commit 54baa6e

Please sign in to comment.