Skip to content

Passing state from signinRedirect to successCallback #193

Description

@david-nishi

It would be helpful to document somewhere that it is possible to pass serialized data from signinRedirect through the login redirects to CallbackComponent.successCallback.

userManager.signinRedirect({ data: 'testing 123' })

results in

<CallbackComponent
  successCallback={user => {
    console.log(user.state)        // outputs 'testing 123'
  }}
  ...
/>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions