Skip to content

Commit

Permalink
Merge a31429b into 97d710c
Browse files Browse the repository at this point in the history
  • Loading branch information
dventurait authored Oct 10, 2023
2 parents 97d710c + a31429b commit 7ad289c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/IFrameController.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class IFrameController {
return new Promise((resolve, reject) => {
const timer = setInterval(() => {
reject(new IFrameError('Silent sign-in timed out'));
}, 5 * 1000);
}, 10 * 1000);
window.addEventListener('message', (message) => {
if (!message.data || message.data.type !== messageType) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class AppID {
* Sign in will be successful only if the user has previously signed in using Cloud Directory and their session is not expired.
* @returns {Promise<Tokens>} The tokens of the authenticated user.
* @throws {OAuthError} Any errors from the server according to the [OAuth spec]{@link https://tools.ietf.org/html/rfc6749#section-4.1.2.1}. e.g. {error: 'access_denied', description: 'User not signed in'}
* @throws {IFrameError} "Silent sign-in timed out" - The iframe will close after 5 seconds if authentication could not be completed.
* @throws {IFrameError} "Silent sign-in timed out" - The iframe will close after 10 seconds if authentication could not be completed.
* @throws {TokenError} Any token validation error.
* @throws {RequestError} Any errors during a HTTP request.
* @example
Expand Down

0 comments on commit 7ad289c

Please sign in to comment.