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 missing tests #28

Open
24 tasks
rishabhpoddar opened this issue Oct 17, 2022 · 0 comments
Open
24 tasks

Add missing tests #28

rishabhpoddar opened this issue Oct 17, 2022 · 0 comments

Comments

@rishabhpoddar
Copy link
Contributor

  • "refresh session"
  • "test that unauthorised event is fired when calling protected route without a session"
  • "test that after login, and clearing all cookies, if we query a protected route, it fires unauthorised event"
  • "test rid is there"
  • "signout with expired access token"
  • "signout with not expired access token"
  • "update jwt data"
  • "test that attemptRefreshingSession is working correctly"
  • "test that if via interception, initially an endpoint is hit just twice in case of access token expiary"
  • "test interception should not happen when domain is not the one that they gave"
  • "test that an api call without cookies throws session expire, refresh api is not called and 401 is the output"
  • "test that via interception initially an endpoint is just hit once in case of valid access token"
  • "test that if multiple interceptors are there, they should all work"
  • "refresh session with invalid tokens should clear all cookies"

From axios2.test.js

  • "refresh session, signing key interval change"
  • "refresh session endpoint responding with 500 rejects original request with axios error"
  • "API returning 401 will not call refresh after logout"
  • "refresh session endpoint responding with 401 rejects original call with axios error"
  • "no refresh call after 401 response that removes session"
  • "original endpoint responding with 500 should not call refresh without cookies"
  • "refresh throwing an error with empty body doesn't cause an error"
  • "test when ACCESS_TOKEN_PAYLOAD_UPDATED is fired"
  • "test ACCESS_TOKEN_PAYLOAD_UPDATED when updated with handle"
  • Test manuallySetCookiesFromResponse
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

No branches or pull requests

1 participant