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

fix: allows to define Origin header from RN integrations #847

Merged
merged 3 commits into from
Feb 19, 2024

Conversation

cesarenaldi
Copy link
Member

No description provided.

Copy link

height bot commented Feb 14, 2024

This pull request has been linked to 1 task:

💡Tip: Add "Close T-19333" to the pull request title or description, to a commit message, or in a comment to mark this task as "Done" when the pull request is merged.

Copy link

changeset-bot bot commented Feb 14, 2024

🦋 Changeset detected

Latest commit: 205a856

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@lens-protocol/api-bindings Patch
@lens-protocol/react-native Patch
@lens-protocol/react-web Patch
@lens-protocol/react Patch
@lens-protocol/wagmi Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Feb 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
lens-sdk-example-web-wagmi ✅ Ready (Inspect) Visit Preview Feb 19, 2024 3:51pm

Base automatically changed from fix/tsdoc to develop February 14, 2024 20:55
@@ -126,7 +131,8 @@ export function createAuthLink(accessTokenStorage: IAccessTokenStorage) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
headers: {
...('headers' in prevContext && prevContext.headers),
authorization: `Bearer ${token}`,
Authorization: `Bearer ${token}`,
Origin: origin,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if it's not defined? maybe something like

...origin && { Origin: origin }

@cesarenaldi cesarenaldi merged commit 87f6da5 into develop Feb 19, 2024
6 checks passed
@cesarenaldi cesarenaldi deleted the T-19333/origin branch February 19, 2024 16:21
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

Successfully merging this pull request may close these issues.

None yet

2 participants