fix: update default http relay and in tests

This commit is contained in:
James Browning
2025-01-13 20:30:02 +00:00
parent 43e30b39cd
commit 56468acbc0
3 changed files with 4 additions and 4 deletions

View File

@@ -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 },
/**

View File

@@ -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

View File

@@ -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