MCPcopy
hub / github.com/authts/oidc-client-ts / _useRefreshToken

Method _useRefreshToken

src/UserManager.ts:370–380  ·  view source on GitHub ↗
(args: UseRefreshTokenArgs)

Source from the content-addressed store, hash-verified

368 }
369
370 protected async _useRefreshToken(args: UseRefreshTokenArgs): Promise<User> {
371 const response = await this._client.useRefreshToken({
372 timeoutInSeconds: this.settings.silentRequestTimeoutInSeconds,
373 ...args,
374 });
375 const user = new User({ ...args.state, ...response });
376
377 await this.storeUser(user);
378 await this._events.load(user);
379 return user;
380 }
381
382 /**
383 *

Callers 1

signinSilentMethod · 0.95

Calls 3

storeUserMethod · 0.95
useRefreshTokenMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected