From 56468acbc088b3559c4c7f0adbe8808a682e9377 Mon Sep 17 00:00:00 2001 From: James Browning Date: Mon, 13 Jan 2025 20:30:02 +0000 Subject: [PATCH] fix: update default http relay and in tests --- examples/authz/3rd-party-app/src/pubky-auth-widget.js | 4 ++-- pubky/pkg/test/auth.js | 2 +- pubky/src/shared/auth.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/authz/3rd-party-app/src/pubky-auth-widget.js b/examples/authz/3rd-party-app/src/pubky-auth-widget.js index 628f316..84a2932 100644 --- a/examples/authz/3rd-party-app/src/pubky-auth-widget.js +++ b/examples/authz/3rd-party-app/src/pubky-auth-widget.js @@ -2,7 +2,7 @@ import { LitElement, css, html } from 'lit' import { createRef, ref } from 'lit/directives/ref.js'; import QRCode from 'qrcode' -const DEFAULT_HTTP_RELAY = "https://demo.httprelay.io/link" +const DEFAULT_HTTP_RELAY = "https://httprelay.staging.pubky.app/link/" /** */ @@ -19,7 +19,7 @@ export class PubkyAuthWidget extends LitElement { * GET request made for `${realy url}/${channelID}` * * If no relay is passed, the widget will use a default relay: - * https://demo.httprelay.io/link + * https://httprelay.staging.pubky.app/link/ */ relay: { type: String }, /** diff --git a/pubky/pkg/test/auth.js b/pubky/pkg/test/auth.js index fe7e559..ec521de 100644 --- a/pubky/pkg/test/auth.js +++ b/pubky/pkg/test/auth.js @@ -38,7 +38,7 @@ test("3rd party signin", async (t) => { let capabilities = "/pub/pubky.app/:rw,/pub/foo.bar/file:r"; let client = PubkyClient.testnet(); let [pubkyauth_url, pubkyauthResponse] = client - .authRequest("https://demo.httprelay.io/link", capabilities); + .authRequest("https://httprelay.staging.pubky.app/link/", capabilities); if (globalThis.document) { // Skip `sendAuthToken` in browser diff --git a/pubky/src/shared/auth.rs b/pubky/src/shared/auth.rs index 5c37f48..ec38d01 100644 --- a/pubky/src/shared/auth.rs +++ b/pubky/src/shared/auth.rs @@ -280,7 +280,7 @@ mod tests { "/pub/pubky.app/:rw,/pub/foo.bar/file:r".try_into().unwrap(); let client = PubkyClient::test(&testnet); let (pubkyauth_url, pubkyauth_response) = client - .auth_request("https://demo.httprelay.io/link", &capabilities) + .auth_request("https://httprelay.staging.pubky.app/link/", &capabilities) .unwrap(); // Authenticator side