Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Integrate supertokens-web-js (#464)
* feat!: Implement web-js email verification recipe (#382) * Implement web-js email verification recipe * Add network response to recipe function return types * Update CHANGELOG * Update size limits * Create webjs instance in recipe constructor instead of recipe implementation * Export all recipe implementation functions from recipe/index * Update CHANGELOG * Refactor based on PR comments * Refactor code based on type changes in web-js * Export email verification functions from other recipes * Update types to include action in PostAPIHookContext * Update size limit for third party recipe * feat!: Integrate emailpassword recipe from supertokens-web-js (#389) * Use direct imports for NormalisedURLDomain and Path instead of /lib/build from supertokens-web-js * Modify email password to use recipe from web-js * Refactor when calling doesEmailExist * Add general error handling for email password and fix for fields logic for submitNewPassword * Change web-js to use 0.0 branch * Update CHANGELOG * Update size check * Update CHANGELOG and refactor based on PR comments * Integrate web-js third party recipe * Refactor based on changes in web-js thirdparty recipe * Refactor based on changes in web-js thirdparty recipe * Refactor based on changes in web-js * Update for-tests app * Fix using redirectToPath from state stored in session storage * Remove recipe interface and use types from webjs for emailverification * Add thirdpartyemailpassword recipe and remove recipe interfaces from auth react * Update gitattributes * Refactor based on web-js changes and remove unnecessary recipe implementation folder * Fix logic for general error * Initialise sub recipes and add on handle event code * Remove console log * Update size limit * Update CHANGELOG * Export email password recipe functions from tpep * Export third party recipe functions from tpep * Update CHANGELOG * Integrate web-js session recipe and remove dependancy from supertokens-website * Refactor based on changed in web-js * Refactor based on changes in web-js * Refactor based on PR review * Add user context provider * Refactor * Refactor * Refactor based on PR reviews * feat!: Integrate third party and third party email password recipes from supertokens-web-js (#393) * Integrate web-js third party recipe * Refactor based on changes in web-js thirdparty recipe * Refactor based on changes in web-js thirdparty recipe * Refactor based on changes in web-js * Update for-tests app * Fix using redirectToPath from state stored in session storage * Remove recipe interface and use types from webjs for emailverification * Add thirdpartyemailpassword recipe and remove recipe interfaces from auth react * Update gitattributes * Refactor based on web-js changes and remove unnecessary recipe implementation folder * Fix logic for general error * Initialise sub recipes and add on handle event code * Remove console log * Update size limit * Update CHANGELOG * Export email password recipe functions from tpep * Export third party recipe functions from tpep * Update CHANGELOG * Refactor based on changes in web-js * Refactor based on PR review * Refactor * Refactor based on PR reviews * Update CHANGELOG * Add user context as a prop * Add userContext unit tests for emailpassword and thirdparty * Add end to end test for user context with ResetPasswordUsingToken component * Use latest web-js * Use latest web-js * Add UI tests for using user context with third party email password * Refactor for tests * Add userContext to onhandleEvemt * feat: Replace supertokens-website for session recipe with supertokens-web-js (#398) * Integrate web-js third party recipe * Refactor based on changes in web-js thirdparty recipe * Refactor based on changes in web-js thirdparty recipe * Refactor based on changes in web-js * Update for-tests app * Fix using redirectToPath from state stored in session storage * Remove recipe interface and use types from webjs for emailverification * Add thirdpartyemailpassword recipe and remove recipe interfaces from auth react * Update gitattributes * Refactor based on web-js changes and remove unnecessary recipe implementation folder * Fix logic for general error * Initialise sub recipes and add on handle event code * Remove console log * Update size limit * Update CHANGELOG * Export email password recipe functions from tpep * Export third party recipe functions from tpep * Update CHANGELOG * Integrate web-js session recipe and remove dependancy from supertokens-website * Refactor based on changed in web-js * Refactor based on changes in web-js * Refactor based on PR review * Refactor * Refactor based on PR reviews * Update CHANGELOG * Use latest web-js * Use latest web-js * Add userContext to onhandleEvemt * Add userContext to getSessionContext * Update changelog * Integrate web-js passwordless recipe * Refactor * Refactor user context changes * Refactor the way user context is handled for UI components * Fix based on PR comments * Use latest web-js and refactor callAPI error handling * Add UserContextWrapper for SessionAuth * Add UserContextWrapper to EmailVerificationAuth * Explicitly pass userContext as undefined for SessionAuth and EmailVerificationAuth * Refactor user context to also provide a function for updating it * Refactor to fix tests * Refactor * Changes based on PR review * Remove passing userContext as undefined * feat: Add the ability to pass userContext to pre-built UI components (#399) * Integrate web-js third party recipe * Refactor based on changes in web-js thirdparty recipe * Refactor based on changes in web-js thirdparty recipe * Refactor based on changes in web-js * Update for-tests app * Fix using redirectToPath from state stored in session storage * Remove recipe interface and use types from webjs for emailverification * Add thirdpartyemailpassword recipe and remove recipe interfaces from auth react * Update gitattributes * Refactor based on web-js changes and remove unnecessary recipe implementation folder * Fix logic for general error * Initialise sub recipes and add on handle event code * Remove console log * Update size limit * Update CHANGELOG * Export email password recipe functions from tpep * Export third party recipe functions from tpep * Update CHANGELOG * Integrate web-js session recipe and remove dependancy from supertokens-website * Refactor based on changed in web-js * Refactor based on changes in web-js * Refactor based on PR review * Add user context provider * Refactor * Refactor * Refactor based on PR reviews * Update CHANGELOG * Add user context as a prop * Add userContext unit tests for emailpassword and thirdparty * Add end to end test for user context with ResetPasswordUsingToken component * Use latest web-js * Use latest web-js * Add UI tests for using user context with third party email password * Refactor for tests * Add userContext to onhandleEvemt * Update changelog * Refactor user context changes * Refactor the way user context is handled for UI components * Fix based on PR comments * Add UserContextWrapper for SessionAuth * Add UserContextWrapper to EmailVerificationAuth * Explicitly pass userContext as undefined for SessionAuth and EmailVerificationAuth * Refactor user context to also provide a function for updating it * Refactor to fix tests * Changes based on PR review * Remove passing userContext as undefined * Use latest web-js * Update CHANGELOG * Update based on changes in web-js * Use latest web-js * Changes based on PR review * Add util method for setLoginAttemptInfo * Refactor based on PR review * Use latest web-js * Refactor STGeneralError handling * Refactor based on PR review * Refactor general error handling * feat!: Integrate passwordless recipe from web-js SDK (#402) * Integrate web-js third party recipe * Refactor based on changes in web-js thirdparty recipe * Refactor based on changes in web-js thirdparty recipe * Refactor based on changes in web-js * Update for-tests app * Fix using redirectToPath from state stored in session storage * Remove recipe interface and use types from webjs for emailverification * Add thirdpartyemailpassword recipe and remove recipe interfaces from auth react * Update gitattributes * Refactor based on web-js changes and remove unnecessary recipe implementation folder * Fix logic for general error * Initialise sub recipes and add on handle event code * Remove console log * Update size limit * Update CHANGELOG * Export email password recipe functions from tpep * Export third party recipe functions from tpep * Update CHANGELOG * Integrate web-js session recipe and remove dependancy from supertokens-website * Refactor based on changed in web-js * Refactor based on changes in web-js * Refactor based on PR review * Add user context provider * Refactor * Refactor * Refactor based on PR reviews * Update CHANGELOG * Add user context as a prop * Add userContext unit tests for emailpassword and thirdparty * Add end to end test for user context with ResetPasswordUsingToken component * Use latest web-js * Use latest web-js * Add UI tests for using user context with third party email password * Refactor for tests * Add userContext to onhandleEvemt * Update changelog * Integrate web-js passwordless recipe * Refactor * Refactor user context changes * Refactor the way user context is handled for UI components * Fix based on PR comments * Use latest web-js and refactor callAPI error handling * Add UserContextWrapper for SessionAuth * Add UserContextWrapper to EmailVerificationAuth * Explicitly pass userContext as undefined for SessionAuth and EmailVerificationAuth * Refactor user context to also provide a function for updating it * Refactor to fix tests * Refactor * Changes based on PR review * Remove passing userContext as undefined * Use latest web-js * Update CHANGELOG * Update based on changes in web-js * Use latest web-js * Changes based on PR review * Add util method for setLoginAttemptInfo * Refactor based on PR review * Use latest web-js * Refactor STGeneralError handling * Refactor based on PR review * Refactor general error handling * Merge 0.20 * Regenerate package-lock for test server * Fix tests * Integrate thirdpartypasswordless from web-js * Update size limit * Update CHANGELOG for passwordless * Export recipe functions from thirdpartypasswordless index * Update CHANGELOG for thirdpartypasswordless * Refactor based on changes in supertokens-web-js * Fix function names in for-tests example app * Fix method names in for-tests thirdpartypasswordless * Refactor based on changes in web-js * feat!: Integrate thirdpartypasswordless from web-js SDK (#411) * Integrate thirdpartypasswordless from web-js * Update size limit * Update CHANGELOG for passwordless * Export recipe functions from thirdpartypasswordless index * Update CHANGELOG for thirdpartypasswordless * Refactor based on changes in supertokens-web-js * Fix function names in for-tests example app * Fix method names in for-tests thirdpartypasswordless * Use util functions from web-js for passwordless * Use latest web-js * Use latest web-js * Refactor based on changes in web-js * Update to web-js 0.0 and update test workflow * Update to web-js 0.0 and update test workflow * Update to web-js 0.0 and update test workflow * Update to web-js 0.0 and update test workflow * Update to web-js 0.0 and update test workflow * Update to web-js 0.0 and update test workflow * Remove querier and modify prune script * Remove supported_fdi * Refactor querier test to use Querier from web-js * Rename disableDefaultImplementation to disableDefaultUI * Update CHANGELOG * Rename disableDefaultImplementation to disableDefaultUI for tests * refactor: Use web-js input type for session recipe (#422) * Use web-js input type for session recipe * Update size limit * refactor: Remove Querier from supertokens-auth-react (#424) * Remove querier and modify prune script * Remove supported_fdi * Refactor querier test to use Querier from web-js * Add mock for response.clone to unit test * Fix querier test with latest web-js * Delete querier tests * refactor: Rename disableDefaultImplementation to disableDefaultUI in the query params in the testing environment and example apps (#426) * Rename disableDefaultImplementation to disableDefaultUI for query params during testing * Rename disableDefaultImplementation to disableDefaultUI for example apps * Revert property change for example apps other than test * Add general error handling for email verification * Add test to check for general error in verifyEmailLinkClicked screen * Fix logic for general error handling for verifyEmailLinkClicked component * Add test to check for general error in sendVerifyEmail screen * Update CHANGELOG * Use web-js 0.0 * refactor: Refactor imports from supertokens-web-js to not use build paths directly (#432) * Refactor types for importing STGeneralError * Refactor imports for recipe types from web-js * Refactor import for recipeModule and session recipe from web-js * Refactor imports for recipe implementation and normalised url domain + path for web-js * Refactor imports for passwordless utils from web-js * Use latest web-js * Update size limit * chore: Merge 0.21 into web-js-integration (#455) * chore: updated version number * feat(thirdpartypasswordless): add implementation for thirdpartypasswordless (#372) * Initial implementation for thirdpartypasswordless * Added missing prop * Updated changelog and size checker * Updated size limits * refactor(tppwless): Rename signInAndUp to thirdPartySignInAndUp * fix: reverted unnecessary size inrease * test(thirdpartypasswordless): Add basic tests * fix:(thirdpartypasswordless): style context construction * fix(thirdpartypasswordless): only show provider list on first step of sign in * test: updated thirdPartySignInAndUp name in test app * refactor(thirdpartypasswordless): renamed doesXExists to include PasswordlessUser * feat(thirdpartypasswordless): exporting LinkClicked screen * fix(thirdpartypasswordless): fix error messages * test(thirdpartypasswordless): adding override test * fix(thirdpartypasswordless): fix errors showing up twice * chore: updated changelog * refactor(thirdpartypasswordless): Moved HeaderWithProviderList to a separate file * test(thirdpartypasswordless): add email verification settings to test app * test(thirdpartypasswordless): Set contactMethod of test app and server to EMAIL_OR_PHONE * refactor: implementing review feedback on thirdpartypasswordless + finishing touches * fix(passwordless): revert wrong fix refactor(thirdpartypasswordless): implemented review feedback * test(thirdpartypasswordless): reuse tests from subrecipes * docs(thirdpartypasswordless): added example app * fix(thirdpartypasswordless): fix optionality of thirdPartyProviderAndEmailOrPhoneFormStyle * feat: export SignInAndUpCallback feature component * chore: updated version number * test(thirdpartypasswordless, passwordless): stability fix + email verification test for tppwless * docs(thirdpartypasswordless): fix links in example app * fix: updated fdi version * test(thirdpartypasswordless): using featureFlags to skip tests if not supported Co-authored-by: Mihaly Lengyel <[email protected]> Co-authored-by: Rishabh Poddar <[email protected]> * updates changelog and fdi json * adding dev-v0.20.0 tag to this commit to ensure building * adding dev-v0.20.0 tag to this commit to ensure building * adds retries to tests * adding dev-v0.20.0 tag to this commit to ensure building * updates demo app dependency link * fix(thirdpartypasswordless): add missing header divider (#406) Co-authored-by: Mihaly Lengyel <[email protected]> * updates to changelog * adding dev-v0.20.0 tag to this commit to ensure building * chore: Add Github Action to run tests and a PR action to check if tests pass (#407) * Add workflow helpers and test woekflows for github actions * Make git config step run before init * adding dev-v0.20.0 tag to this commit to ensure building * refactor: Rename query param in SuperTokens branding component to utm_campaign (#408) * Change query in branding component href to use utm_campaign * Bump package version to 0.20.1 * Update CHANGELOG * adding dev-v0.20.1 tag to this commit to ensure building * ci: export test results and use parallel builds (#405) * ci: export test results and use parallel builds * ci: implement review feedback Co-authored-by: Mihaly Lengyel <[email protected]> Co-authored-by: Rishabh Poddar <[email protected]> * fix: form base nextjs bug (#413) Co-authored-by: Mihaly Lengyel <[email protected]> * adding dev-v0.20.2 tag to this commit to ensure building * ci: fix continuation for tag builds (#414) Co-authored-by: Mihaly Lengyel <[email protected]> * adding dev-v0.20.2 tag to this commit to ensure building * Ci fix (#416) * ci: fix no tests running and markPassed * adding dev-v0.20.2 tag to this commit to ensure building * ci: fix no tests running and markPassed * adding dev-v0.20.2 tag to this commit to ensure building * ci: fix no tests running and markPassed * ci: fix no tests running and markPassed * ci: fix no tests running and markPassed * adding dev-v0.20.2 tag to this commit to ensure building * adding dev-v0.20.2 tag to this commit to ensure building * ci: fix no tests running and markPassed * adding dev-v0.20.2 tag to this commit to ensure building * ci: revert unnecessary changes * ci: fix artifacts Co-authored-by: Mihaly Lengyel <[email protected]> * rebuilds and fixes cicd script * adding dev-v0.20.2 tag to this commit to ensure building * refactor: use PropsWithChildren whereever we accept children (#419) * refactor: use PropsWithChildren whereever we accept children * chore: updated version & changelog Co-authored-by: Mihaly Lengyel <[email protected]> * adding dev-v0.20.3 tag to this commit to ensure building * updates error message * freezes versions of depdencies * adding dev-v0.20.4 tag to this commit to ensure building * docs: Adds vercel example app (#420) * With emailpassword vercel (#412) * created the demo app * created the api folder for the backend * modified the frontend * made changes on the api * modified the api-server * modified the api-server * modified frontend and api * updates on README.md * update on README.md * update on REAME.md * update on REAME.md * fixed some issues * modified README.md * modified README.md * modified README * Update examples/with-emailpassword-vercel/README.md * modiefied the project * updated the Vercel link * few fixes Co-authored-by: Rishabh Poddar <[email protected]> * runs pretty and updates changelog * makes getting domain in vercel example app easier * changes version of auth-react dependency in demo app * removes unnecessary changes * changes live link Co-authored-by: Ekekenta Odionyenfe .C <[email protected]> * adding dev-v0.20.4 tag to this commit to ensure building * adds thirdpartypasswordless demo app to cicd * fixes to cicd for demo app updates * fixes to cicd for demo app updates * Update CONTRIBUTING.md (#427) * chore: Add information about env variables for mailing to passwordless demo apps (#429) * Add env file and modify README for example/with-passwordless * Add env file and modify README for example/with-thirdpartypasswordless * fixes pre commit hook * removes unnecessary example apps * feat: Allow users to provide custom cookie and window handlers (#445) * feat: Allow custom handlers for cookies and window API (#436) * Add window handling for electron * Use assign to reload instead of setting href * Use window utilities instead of getWindowOrThrow * Update supertokens-website * Fix window utils * Update supertokens-website * Update supertokens-website * Modify how query params are processed for electron apps * Use latest supertokens-website * Use latest supertokens-website * Update supertokens-website * Update supertokens-website * Allow custom cookie handling * Allow custom cookie handling * Pass cookie handlers to website sdk init * Update supertokens-website * Allow custom window API handling * Use latest supertokens-website and refactor handler init * Add default exports for handlers * Refactor handlers based on changes in supertokens-website * Use latest supertokens-website * Rename common to utils * Remove unused eslint rule * Update CHANGELOG * Update package version * Refactor where handler init is called * Modify eslint error * Refactor based on PR reviews * chore: Add example app for electron using thirdpartypasswordless (#443) * Add window handling for electron * Use assign to reload instead of setting href * Basic setup for electron example app * Use window utilities instead of getWindowOrThrow * Update supertokens-website * Fix window utils * Update supertokens-website * Update supertokens-website * Modifications to example app * Modify how query params are processed for electron apps * Use latest supertokens-website * Update example app * Use latest supertokens-website * Update example app * Update supertokens-website * Update supertokens-website * Allow custom cookie handling * Allow custom cookie handling * Pass cookie handlers to website sdk init * Update example app * Update api server fpr magic links * Update supertokens-website * Update example app * Allow custom window API handling * Use latest supertokens-website and refactor handler init * Add default exports for handlers * Modify example app * Refactor handlers based on changes in supertokens-website * Use latest supertokens-website * Rename common to utils * Remove unused eslint rule * Update CHANGELOG * Update package version * Edit example app * Refactor where handler init is called * Bring app into focus on deep links * Modify eslint error * Refactor based on PR reviews * Update imports to handlers * Add README and code comments to example app * Edit electron example app title * Add check for expired cookies in custom cookie handling * Update package version * Update CHANGELOG * use proper version in electron example app * Use latest supertokens-website * Update CHANGELOG * adding dev-v0.20.5 tag to this commit to ensure building * feat: update session context on ACCESS_TOKEN_PAYLOAD_UPDATED (#446) * feat: update session context on ACCESS_TOKEN_PAYLOAD_UPDATED * chore: increased allowed size for the session recipe Co-authored-by: Mihaly Lengyel <[email protected]> * adding dev-v0.21.0 tag to this commit to ensure building * adds debug log feature (#448) * adding dev-v0.21.1 tag to this commit to ensure building * updates size limit * adding dev-v0.21.1 tag to this commit to ensure building * feat: react 18 strict mode support (#444) * feat: add support for react@18 (#437) Co-authored-by: Mihaly Lengyel <[email protected]> * docs: update example app deps (#439) Co-authored-by: Mihaly Lengyel <[email protected]> * docs: fix example apps (#438) Co-authored-by: Mihaly Lengyel <[email protected]> * fix: remove unnecessary import (#449) Co-authored-by: Mihaly Lengyel <[email protected]> * test: update tests to react 18 (#440) * test: update tests to react 18 * test: readd tests for react 16 * test: rework how we link examples to allow multiple versions * ci: increased timeout limit of testing gh action * adds --override flag * refactor: review feedback Co-authored-by: Mihaly Lengyel <[email protected]> Co-authored-by: rishabhpoddar <[email protected]> * chore: update size limits Co-authored-by: Mihaly Lengyel <[email protected]> Co-authored-by: rishabhpoddar <[email protected]> * adding dev-v0.21.2 tag to this commit to ensure building * fixes dev env for mac and makes e2e tests more reliable for cicd * adding dev-v0.21.2 tag to this commit to ensure building * Dependencies fix (#450) * temp fix * updates version again * updates dependencies again * updates dependencies again * updates dependencies again * restores dependency version * bumps version * adding dev-v0.21.3 tag to this commit to ensure building * adds new pr check for pre commit (#451) * adds new pr check * updates to pr for debug * update to pr action * docs: Adding svelte demo app (#441) * adds example app with svelte * added a readme file to the demo app with svelte for better navigation * pretty * changed the architecture of the example app with svelte * undo the version in package lock file * updated the version * completed the demo svelte app * fixes app * updated the UI of the svelte demo app Co-authored-by: rtpa25 <[email protected]> * docs: Adding Supabase example app (#447) * initial commit * turns off strict mode * adds example app * updates README.md * uncomments emailVerification * updates CHANGELOG.md * code feedback fixs * updates README.md * fixs * adds banner image * fixs code comment * fixs * fixs * modifies app to use email instead of userId * copy change * implements feedback * comment fixs * fixs * fixs * fixs * updates to ts * fixs * removes incremental flag * fixs * fixs * fix * fixs * fixs * fixs Co-authored-by: rishabhpoddar <[email protected]> * chore: fix comments (#454) * Update size limit * Use force during init * Use force in pre commit github action * Use force in pre commit github action * Update pre commit action * Update pre commit action * Update pre commit github action (#456) * Remove imports from web-js build * Refactor based on PR comments * Changes based on latest web-js-sdk * Remove userContext from hook dependencies * Revert starttestapp * Changes based on latest web-js-sdk * Update react 16 test app Co-authored-by: Mihaly Lengyel <[email protected]> Co-authored-by: Mihály Lengyel <[email protected]> Co-authored-by: Rishabh Poddar <[email protected]> Co-authored-by: Rishabh <[email protected]> Co-authored-by: Ekekenta Odionyenfe .C <[email protected]> Co-authored-by: rtpa25 <[email protected]> Co-authored-by: Joel Coutinho <[email protected]> * Add web js interface supported json * Update package verison * Update package lock Co-authored-by: Mihaly Lengyel <[email protected]> Co-authored-by: Mihály Lengyel <[email protected]> Co-authored-by: Rishabh Poddar <[email protected]> Co-authored-by: Rishabh <[email protected]> Co-authored-by: Ekekenta Odionyenfe .C <[email protected]> Co-authored-by: rtpa25 <[email protected]> Co-authored-by: Joel Coutinho <[email protected]>
- Loading branch information