Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LIFF JavaScript SDK - login parameter redirectUri not working #66

Open
terrylinooo opened this issue Oct 25, 2022 · 0 comments
Open

LIFF JavaScript SDK - login parameter redirectUri not working #66

terrylinooo opened this issue Oct 25, 2022 · 0 comments

Comments

@terrylinooo
Copy link

terrylinooo commented Oct 25, 2022

LIFF JavaScript SDK - login parameter redirectUri not working as expected.

Everytime I set the redirectUri always get liff.isLoggedIn() returned false.

The endpoint is the website's domain, ex, https://www.example.com
The redirectUri I set is at the same dmain but a path, ex, https://www.example.com/checkout/

Describe the bug

Not working.

liff.login({
   redirectUri: window.location.href,
});

Working

liff.login();

// or

liff.login({
   redirectUri: `100% fit to the the endpoint URL`,
});

Expected behavior
The login status is supposed to be true after redirecting back to the website.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser Chrome
  • Version: Almost tried many different SDK version from 2.3 to 2.21.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant