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

Method signinRedirectCallback

src/UserManager.ts:205–216  ·  view source on GitHub ↗

* Process the response (callback) from the authorization endpoint. * It is recommended to use UserManager.signinCallback instead. * * @returns A promise containing the authenticated `User`. * * @see UserManager.signinCallback

(url = window.location.href)

Source from the content-addressed store, hash-verified

203 * @see {@link UserManager.signinCallback}
204 */
205 public async signinRedirectCallback(url = window.location.href): Promise<User> {
206 const logger = this._logger.create("signinRedirectCallback");
207 const user = await this._signinEnd(url);
208 if (user.profile && user.profile.sub) {
209 logger.info("success, signed in subject", user.profile.sub);
210 }
211 else {
212 logger.info("no subject");
213 }
214
215 return user;
216 }
217
218 /**
219 * Trigger the signin with user/password.

Callers 4

signinCallbackMethod · 0.95
endSigninMainWindowFunction · 0.80
sample-callback.jsFile · 0.80

Calls 3

_signinEndMethod · 0.95
infoMethod · 0.65
createMethod · 0.45

Tested by

no test coverage detected