onairos 0.1.240 → 0.1.241

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,10 +38,12 @@ function OthentButton(_ref) {
38
38
  appInfo,
39
39
  throwErrors: false,
40
40
  auth0LogInMethod: "redirect",
41
- auth0RedirectURI: "https://internship.onairos.uk/callback",
42
- auth0ReturnToURI: "https://internship.onairos.uk/logout"
41
+ auth0RedirectURI: window.location.href,
42
+ // The current page URL for redirection after login
43
+ auth0ReturnToURI: window.location.href // Same for logout
43
44
  });
44
45
  const userDetails = await othent.connect();
46
+ console.log("Valid user details??");
45
47
  if (!userDetails) {
46
48
  throw new Error('Othent connection failed');
47
49
  }