Skip to content

Commit

Permalink
Clarifying docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerHendrickson committed Dec 22, 2023
1 parent 9ca55d7 commit 40e2d9e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/src/lib/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ export const requireAuth = ({ roles }: { roles?: AllowedRoles } = {}) => {
*
* @param setEnv - If true, caches the Passage API key to $PASSAGE_API_KEY environment variable.
* @param force - If true, forces retrieval of the Passage API key from AWS Secrets Manager,
* even if the $PASSAGE_API_KEY environment variable is already set.
* even if the $PASSAGE_API_KEY environment variable is already set. This can be useful when
* the secret API key value has changed (e.g. due to rotation). If the value returned by this
* function is rejected by a subsequent Passage API operation, it may be worth calling this function
* once more with `force = true` to attempt to retrieve a more recent, valid key, instead of
* failing immediately.
*
* @returns The Passage API key
*/
Expand Down

0 comments on commit 40e2d9e

Please sign in to comment.