Skip to content

Commit

Permalink
Fix Promise generic in oauth-client README (#2839)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevSlashNull authored Sep 30, 2024
1 parent 16a2399 commit 2974d83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/oauth/oauth-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const client = new OAuthClient({
throw new TypeError(`Unsupported algorithm: ${algorithm.name}`)
},

requestLock: <T>(name: string, fn: () => T | PromiseLike<T>): Promise T => {
requestLock: <T>(name: string, fn: () => T | PromiseLike<T>): Promise<T> => {
// This function is used to prevent concurrent refreshes of the same
// credentials. It is important to ensure that only one refresh is done at
// a time to prevent the sessions from being revoked.
Expand Down

0 comments on commit 2974d83

Please sign in to comment.