"Conect to Lulu" doesn't work when you login in lulu and ketty with different emails
Connect to Lulu
fails when there is a mismatch between the email used to log in to Ketty and the email used to log in to Lulu. Initially, I used the same email for both platforms, but when logging in to Ketty as another user, I cannot connect to Lulu anymore.
Expected behavior
I should be able to connect to Lulu, even when I am using the same browser to sign in as another user.
Current behavior
It seems Lulu "remembers" the credentials I signed in to Lulu the first time. Now, after signing in as another user in Ketty, when I click Connect to Lulu
button in Preview
page, a new tab is opened that displays an error "Something went wrong. Try reconnecting or contact to us" and in console there seems to be an authentication error, as in the screenshot below.
Steps to reproduce
- If you have already been connected to Lulu, sign out of Ketty.
- Using the same browser, sign up to Ketty using a different email.
- Sign in to Ketty using the email from step 2.
- Create a book and an export profile.
- Click
Connect to Lulu
and check the error in the new tab.
Environment
[Provide browser name and version and if you're working from a PC or Mac]
Possible solution
[Not required. Suggest a fix for the bug]