assemblee-virtuelle / semapps

A toolbox to create semantic web applications
https://semapps.org
Apache License 2.0
88 stars 9 forks source link

LocalLoginPage: replace postLoginRedirect/postSignupRedirect with onLogin/onSignup #1299

Closed srosset81 closed 3 months ago

srosset81 commented 3 months ago

This way we can get rid of the interactionId stuff that are only relevant to ActivityPods, and have something that is more flexible and that looks like React-Admin.

Breaking changes :warning:

The postLoginRedirect and postSignupRedirect props must be replaced with onLogin and onSignup. Example:

<LocalLoginPage
  onLogin={redirectUrl => {
    console.log('Hey there !');
    window.location.href = `/my-post-login-page?redirect=${encodeURIComponent(redirectUrl)}`};
  }
>