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

RELAY_HOST => CH_HOST #37

Closed
wants to merge 7 commits into from
Closed

Conversation

jpsantosbh
Copy link
Contributor

No need to set a host config for the SDK client, since the host should use the ch header from the JWT.
But to get a server-side SAT with the ch we need to include that on the request.

@@ -355,7 +355,7 @@ function restoreUI() {
async function getClient() {
if (!client && _token) {
client = await SWire({
host: _host,
host: !!_host && _host.trim().length ? _host : undefined,
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor: no need for coercion here.

Suggested change
host: !!_host && _host.trim().length ? _host : undefined,
host: (_host && _host.trim().length) ? _host : undefined,

@jpsantosbh jpsantosbh closed this Mar 4, 2024
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.

3 participants