Giter Club home page Giter Club logo

Comments (4)

ericclemmons avatar ericclemmons commented on July 28, 2024 2

Need me to pick this one up? ;)

from amplify-ui.

Jun711 avatar Jun711 commented on July 28, 2024 1

@ericclemmons
I tried to use Auth.signOut({ global: true }) for a linked google account logout but I got this error from https://cognito-idp.us-east-1.amazonaws.com/ request.

Access Token does not have required scopes

Screen Shot 2020-06-30 at 1 12 35 PM

Could you tell me how to set up the scope for this?

This is what I have in my Cognito app client settings
Screen Shot 2020-06-30 at 1 16 06 PM

It is not mentioned in the these documents
https://docs.amplify.aws/lib/auth/emailpassword/q/platform/js#re-send-confirmation-code
https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-app-idp-settings.html

from amplify-ui.

ericclemmons avatar ericclemmons commented on July 28, 2024

Since we provide a signOut() method in @next, this method should support passing options:

<button onClick={() => signOut({ global: true })>Sign Out</button>

which gets passed to:

services: {
  signOut(context, event) {
	Auth.signOut(event.data);
  }
}

from amplify-ui.

ericclemmons avatar ericclemmons commented on July 28, 2024

Turns out this is harder to do than anticipated because the signOut actor only receives an xstate.init event, not the actual data from sendToMachine('SIGN_OUT').

De-scoping from the GA release so that we can investigate the following:

  1. Remove signOut actor in favor of simpler invoke flow.
  2. Ensure signOut route still exists and is returned for headless usage.

from amplify-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.