RefreshFn: ((conn, callback) => Promise<void>)
Type declaration
- (conn, callback): Promise<void>
Parameters
- conn: Connection
- callback: ((err, accessToken?, res?) => Promise<void>)
- (err, accessToken?, res?): Promise<void>
Parameters
- err: Nullable<Error>
Optional
accessToken: stringOptional
res: Record<string, unknown>
Returns Promise<void>
Returns Promise<void>
A function to update a refresh token when the access token is expired.