* 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)
| 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. |
no test coverage detected