-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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(JS): add signInWithRedirect examples using Hub #7123
base: main
Are you sure you want to change the base?
Conversation
* Updates to Vite + React quickstart * Update src/fragments/gen2/quickstart/build-a-backend.mdx Co-authored-by: Kevin Old <[email protected]> * Update build-a-backend.mdx * Update build-a-backend.mdx * Update build-a-backend.mdx --------- Co-authored-by: Kevin Old <[email protected]>
) * platform typed as optional * refactor init * remove commented code * remove angry useEffect * fix typing * added layoutcontext so mobile menu closes on navigation * move import --------- Co-authored-by: katiegoines <[email protected]>
…atform (aws-amplify#6947) Co-authored-by: Tim Nguyen <[email protected]>
…ctive pl…" (aws-amplify#6955) This reverts commit 5998b22.
…mplify#6954) * chore: more layout refactoring * remove unused prop, alphabetize props
* include usage for multi-page apps * improve multi-page app docs * use Hub syntax * update imports in examples
* chore: Clean up broken Amplify JS API reference links. * Cleaned up language.
* update build image settings for Gen 2 * remove callout and add fragment to vite guide
* chore: add unit test for YoutubeEmbed component * add code coverage stats --------- Co-authored-by: katiegoines <[email protected]>
* chore: add unit tests for Accordion component * issue with window properties * fixed tracking test * working on animation issue * accordion tests * fix testing errors * added test for closing accordion * add code coverage stats --------- Co-authored-by: katiegoines <[email protected]>
* Add algolia env vars to next.config * Remove extra code string
…; add build step to docs (aws-amplify#6970) * fix(data): update React Native minimum iOS deployment target; add build step to docs * address PR feedback * remove deployment target guidance * add React Native version deployment target callout * fix unrecognized syntax * replace callout with accordion * move 'upgrading' callout
…-amplify#6985) * Clarify behavior of forgetDevice() API regarding device tracking This commit updates the documentation to clarify that using the forgetDevice() API results in the device being neither remembered nor tracked. Previously, the documentation suggested that forgotten devices might still be tracked, leading to confusion about the API's behavior. The revised wording aligns with the detailed description under the "Forgotten" section, ensuring consistency and eliminating ambiguity about how forgotten devices are handled. * Clarify behavior of forgetDevice() API regarding device tracking
* Support for enum value listing * Update src/pages/gen2/build-a-backend/data/data-modeling/add-fields/index.mdx
* chore: add unit test for CLICommands * chore: add unit test for Columns * Update Command.test.tsx triggering checks --------- Co-authored-by: katiegoines <[email protected]>
* Update relative urls * Update url
* Updating link checker to account for duplicate urls from different pages and link text * Update slack formatting * Remove console.log * Add comments to function * Remove extra console.logs()
* update redirects * updated redirects --------- Co-authored-by: katiegoines <[email protected]>
* fix(v5): update aws-amplify v5 dependency * chore: remove extra '0' number from versions * chore: remove vue2 block * chore: update version reference
* update auth with correct props
Co-authored-by: Jacob Logan <[email protected]>
…-amplify#7115) * chore: Add callout on Analytics buffer persistence in Amplify JS. * PR feedback.
|
||
Hub.listen("auth", async ({ payload }) => { | ||
switch (payload.event) { | ||
case "signInWithRedirect": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should show the signedIn
event as the example here? This event comes with the result of getCurrentUser()
in the payload. Wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wanted just expand the current examples that we have on the docs already and which use the signInWithRedirect
event
Description of changes:
This change adds
signInWithRedirect
examples using hubRelated GitHub issue #, if available:
verification:
Instructions
If this PR should not be merged upon approval for any reason, please submit as a DRAFT
Which product(s) are affected by this PR (if applicable)?
Which platform(s) are affected by this PR (if applicable)?
Please add the product(s)/platform(s) affected to the PR title
Checks
Does this PR conform to the styleguide?
Does this PR include filetypes other than markdown or images? Please add or update unit tests accordingly.
Are any files being deleted with this PR? If so, have the needed redirects been created?
Are all links in MDX files using the MDX link syntax rather than HTML link syntax?
ref: MDX:
[link](https://docs.amplify.aws/)
HTML:
<a href="https://docs.amplify.aws/">link</a>
When this PR is ready to merge, please check the box below
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.