Fix Promise generic in oauth-client README ()

This commit is contained in:
Kev 🐶 2024-09-30 18:31:11 +02:00 committed by GitHub
parent 16a2399e19
commit 2974d83786
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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.