Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Going from 1.1.1 -> 1.1.2 I end up in a death loop #31

Open
elsigh opened this issue Sep 12, 2018 · 3 comments
Open

Going from 1.1.1 -> 1.1.2 I end up in a death loop #31

elsigh opened this issue Sep 12, 2018 · 3 comments

Comments

@elsigh
Copy link

elsigh commented Sep 12, 2018

I use this in a nextjs app, and something / somehow goes haywire if I upgrade to 1.1.2. If I downgrade to 1.1.1 everything is fine.

image

Here's my code using Sender:

      <Sender
          state={{ to: "/" }}
          render={({ url }) => (
            <div style={{ display: "flex", alignItems: "center" }}>
              <img
                src="/static/notes.png"
                height={20}
                width={20}
                alt=""
                style={{
                  marginRight: 5,
                }}
              />
              <a href={url}>Sign in</a>
              <div style={{ margin: "0 5px" }}>|</div>
              <SignInAsGuest />
            </div>
          )}
        />
@elsigh
Copy link
Author

elsigh commented Sep 12, 2018

Also, worth noting, I created Sender there with this code:

const { Sender, Receiver } = createOauthFlow({
  authorizeUrl: "https://www.dropbox.com/oauth2/authorize",
  tokenUrl: "https://api.dropbox.com/oauth2/token",
  clientId: DROPBOX_APP_KEY,
  clientSecret: DROPBOX_APP_SECRET,
  redirectUri: IS_DEV
    ? "http://localhost:3000/authreceiver"
    : "https://chartcomposer.com/authreceiver",
});

@adambrgmn
Copy link
Owner

Hi, sorry but I haven't had the time to look into this. I'll see if I can take a look at it later this week. Have you tried to look into it yourself, maybe identified what might be the problem?

@elsigh
Copy link
Author

elsigh commented Sep 17, 2018

I've not yet looked, I was hoping something in terms of your changes between the two point releases might strike you as obvious, but I can experiment more. For now I'm just pinned to the prior version so it's not a major deal.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants