Skip to content

Commit bb25000

Browse files
committed
Docs
1 parent 67dc162 commit bb25000

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

packages/core/src/auth-token-manager.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class AuthTokenManagers {
120120
* **Warning**: `tokenProvider` must only ever return auth information belonging to the same identity.
121121
* Switching identities using the `AuthTokenManager` is undefined behavior.
122122
*
123-
* @param param0 - The params
123+
* @param {object} param0 - The params
124124
* @param {function(): Promise<AuthToken>} param0.tokenProvider - Retrieves a new valid auth token.
125125
* Must only ever return auth information belonging to the same identity.
126126
* @returns {AuthTokenManager} The basic auth data manager.
@@ -139,8 +139,16 @@ class AuthTokenManagers {
139139

140140
/**
141141
* Holds the common {@link AuthTokenManagers} used in the Driver
142+
*
143+
* @experimental Exposed as preview feature.
142144
*/
143-
export const authTokenManagers: AuthTokenManagers = Object.freeze(new AuthTokenManagers())
145+
const authTokenManagers: AuthTokenManagers = new AuthTokenManagers()
146+
147+
Object.freeze(authTokenManagers)
148+
149+
export {
150+
authTokenManagers
151+
}
144152

145153
export type {
146154
AuthTokenManagers

0 commit comments

Comments
 (0)