octo-wam / moss-front

A polling app for Octo Technology
http://octo-moss.netlify.com
4 stars 1 forks source link

Deeplink is broken after auto authentication #4

Closed pdegand closed 4 years ago

pdegand commented 4 years ago

đź—’ Be un-authenticated Click a deeplink to a specific poll (https://octo-moss.netlify.com/question/e521e04d-3d2d-4b5e-9214-ac804b8581e2)

❌ You are automatically authenticated but end up on the home page

âś… You should be automatically authenticated and end up on the requested poll

OctoMaieonBrixxy commented 4 years ago

Hello,

Nous (ALME et YCWA) avons trouvé plusieurs solution pour intégrer cette nouvelle feature :

La royale :

export function redirectToLoginPage() {
  window.location.href = `${LOGIN_PAGE_URL}?redirect_uri=${window.location.href}`;
}

La fronteuse :

EDIT :

done :