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

chore: clean up mock auth client #5911

Merged
merged 1 commit into from Jul 18, 2022

Conversation

virtuoushub
Copy link
Collaborator

  • add forgotPassword, resetPassword, and validateResetToken.
  • also add better typings and comment to improve this mock provider.

note: not sure if the async keyword is a 💯 % necessary here (outside of the typings...), and if it will cause issues for downstream users.


For context, I found this over at:

main.ed7cf5c7.iframe.bundle.js:2 Uncaught (in promise) Error: Auth client custom does not implement this function
    at validateResetToken (main.ed7cf5c7.iframe.bundle.js:2:57990)
    at main.ed7cf5c7.iframe.bundle.js:2:110416
    at l (main.ed7cf5c7.iframe.bundle.js:2:2024969)
    at Generator._invoke (main.ed7cf5c7.iframe.bundle.js:2:2024757)
    at Generator.next (main.ed7cf5c7.iframe.bundle.js:2:2025398)
    at c (main.ed7cf5c7.iframe.bundle.js:2:108774)
    at a (main.ed7cf5c7.iframe.bundle.js:2:108977)
    at main.ed7cf5c7.iframe.bundle.js:2:109036
    at new Promise (<anonymous>)
    at main.ed7cf5c7.iframe.bundle.js:2:108917

stems from this change: redwoodjs/example-storybook@18793b1

@netlify
Copy link

netlify bot commented Jul 12, 2022

Deploy Preview for redwoodjs-docs canceled.

Name Link
🔨 Latest commit e46c447
🔍 Latest deploy log https://app.netlify.com/sites/redwoodjs-docs/deploys/62d588a1283bcc00089dcd3a

@simoncrypta simoncrypta added the release:chore This PR is a chore (means nothing for users) label Jul 12, 2022
@@ -20,6 +21,7 @@ const {
default: UserRouterWithRoutes,
} = require('~__REDWOOD__USER_ROUTES_FOR_MOCK')

// TODO: make this AuthContextInterface & the below AuthClient more composable/extendable|"overwriteable"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this TODO is more of a nice to have, doesn't need to happen in this PR (also might change somewhat depending on auth changes in PRs like #5985 )

add `forgotPassword`, `resetPassword`, and `validateResetToken`.
also add better typings and comment to improve this mock provider
@Tobbe Tobbe merged commit 9840f45 into redwoodjs:main Jul 18, 2022
@redwoodjs-bot redwoodjs-bot bot added this to the next-release milestone Jul 18, 2022
@virtuoushub virtuoushub deleted the fix/auth/update-mock-client branch July 19, 2022 00:45
virtuoushub added a commit to redwoodjs/example-storybook that referenced this pull request Jul 19, 2022
virtuoushub added a commit to redwoodjs/example-storybook that referenced this pull request Jul 19, 2022
virtuoushub added a commit to redwoodjs/example-storybook that referenced this pull request Jul 19, 2022
virtuoushub added a commit to redwoodjs/example-storybook that referenced this pull request Jul 21, 2022
dac09 added a commit to dac09/redwood that referenced this pull request Jul 22, 2022
…o feat/ts-strictmode-gen

* 'feat/ts-strictmode-gen' of github.com:dac09/redwood: (94 commits)
  fix(deps): update dependency @graphql-codegen/cli to v2.9.1 (redwoodjs#6013)
  Little grammar change (redwoodjs#6006)
  chore: connect repo to nx cloud to speed up builds (redwoodjs#5988)
  fix(deps): update dependency @testing-library/user-event to v14.3.0 (redwoodjs#6004)
  fix(deps): update graphqlcodegenerator monorepo (redwoodjs#6005)
  chore(deps): update dependency @auth0/auth0-spa-js to v1.22.2 (redwoodjs#6003)
  fix(graphql): Fixes multiValueHeader handling (and CORS) in graphql handler  (redwoodjs#5970)
  chore(deps): update dependency @nhost/hasura-auth-js to v1.4.0 (redwoodjs#6001)
  chore(deps): update dependency @nhost/nhost-js to v1.4.7 (redwoodjs#5999)
  fix(deps): update dependency cross-undici-fetch to v0.4.14 (redwoodjs#6000)
  chore(deps): update dependency @azure/msal-browser to v2.28.0 (redwoodjs#5994)
  fix(deps): update dependency concurrently to v7.3.0 (redwoodjs#5995)
  chore(deps): update dependency @simplewebauthn/browser to v5.3.0 (redwoodjs#5989)
  chore(deps): update dependency @simplewebauthn/server to v5.3.0 (redwoodjs#5990)
  chore(deps): update dependency @simplewebauthn/typescript-types to v5.3.0 (redwoodjs#5991)
  fix(deps): update dependency @testing-library/user-event to v14.2.6 (redwoodjs#5992)
  fix(deps): update typescript-eslint monorepo to v5.30.7 (redwoodjs#5993)
  chore: clean up mock auth client (redwoodjs#5911)
  Adds Webauthn support (TouchID, FaceID) to dbAuth (redwoodjs#5680)
  chore(deps): update dependency octokit to v2.0.4 (redwoodjs#5986)
  ...
@jtoar jtoar modified the milestones: next-release, v2.2.0 Jul 22, 2022
jtoar pushed a commit that referenced this pull request Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:chore This PR is a chore (means nothing for users) topic/auth topic/testing
Projects
Status: Archived
Development

Successfully merging this pull request may close these issues.

None yet

4 participants