Skip to content

Commit

Permalink
fix: update default http relay and in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
catch-21 committed Jan 13, 2025
1 parent 43e30b3 commit 56468ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/authz/3rd-party-app/src/pubky-auth-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/"

/**
*/
Expand All @@ -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 },
/**
Expand Down
2 changes: 1 addition & 1 deletion pubky/pkg/test/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pubky/src/shared/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 56468ac

Please sign in to comment.