Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add popup timeout config #133

Merged
merged 6 commits into from
Aug 7, 2019
Merged

Add popup timeout config #133

merged 6 commits into from
Aug 7, 2019

Conversation

luisrudge
Copy link
Contributor

fix #92

Description

Adds a config object to send popup configuration options. For now, only timeoutInSeconds is available.

References

#92

Testing

  • This change adds test coverage for new/changed/fixed functionality

@mwillbanks
Copy link

Looks great to me.

/**
* We need to run the timers after we start `runPopup`, but we also
* need to use `jest.useFakeTimers` to trigger the timeout.
* That's why we're using a real `setTimeout`, then using fake timers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

src/utils.ts Outdated Show resolved Hide resolved
src/global.ts Show resolved Hide resolved
@luisrudge luisrudge force-pushed the feature/popup-config branch from 7403102 to ee7318b Compare August 6, 2019 19:33
__tests__/index.test.ts Outdated Show resolved Hide resolved
src/global.ts Outdated Show resolved Hide resolved
@luisrudge luisrudge merged commit 99cd59e into master Aug 7, 2019
@damieng damieng deleted the feature/popup-config branch August 21, 2019 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configure or Handle Timeout on Popup Authentication
4 participants