mirror of
https://github.com/aljazceru/pubky-core.git
synced 2026-01-31 11:54:19 +01:00
fix: update default http relay and in tests
This commit is contained in:
@@ -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 },
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user