Skip to content

fix: update service url#3

Merged
PhearZero merged 1 commit intomainfrom
chore/change-base-server
Mar 31, 2026
Merged

fix: update service url#3
PhearZero merged 1 commit intomainfrom
chore/change-base-server

Conversation

@PhearZero
Copy link
Copy Markdown
Collaborator

Overview

  • updates to use the upstream liquid auth service by default

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the example configuration and the Expo plugin default to use the Liquid Auth service URL by default instead of the previous FIDO server URL.

Changes:

  • Swaps the default site URL in the Expo config plugin.
  • Updates the example app’s fetch endpoints and Liquid extension origin to the new host.
  • Refreshes README documentation to reflect the new default site.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
example/app.json Updates the example Expo plugin config site to the new Liquid Auth host.
example/App.tsx Updates example attestation/assertion request/response endpoints and origin.
app.plugin.js Changes the plugin’s default site value.
README.md Updates the documented default site value.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


const withPasskeyAutofill = (config, props = {}) => {
const site = props.site || "https://fido.shore-tech.net";
const site = props.site || "https://debug.liquidauth.com";
Copy link

Copilot AI Mar 26, 2026

Choose a reason for hiding this comment

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

The plugin default site now points at https://debug.liquidauth.com. Since this value is used as the default for all consumers who don’t pass props.site, this effectively hard-codes a specific environment as the library default. Please confirm this is the intended stable upstream endpoint; otherwise consider either removing the default (force explicit config) or switching to the production/stable Liquid Auth base URL.

Suggested change
const site = props.site || "https://debug.liquidauth.com";
const site = props.site;
if (!site) {
throw new Error("withPasskeyAutofill: 'site' must be provided in props and must point to the intended Liquid Auth endpoint.");
}

Copilot uses AI. Check for mistakes.
Comment on lines 94 to 96
const urlSafeCredentialId = credentialId.replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '');
const response = await fetch(`https://fido.shore-tech.net/assertion/request/${urlSafeCredentialId}`, {
const response = await fetch(`https://debug.liquidauth.com/assertion/request/${urlSafeCredentialId}`, {
method: 'POST',
Copy link

Copilot AI Mar 26, 2026

Choose a reason for hiding this comment

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

These endpoints are duplicated in several places (assertion request/response, attestation request/response, plus the origin field). To reduce the risk of future mismatches (e.g., updating the host in one place but not others), consider defining a single BASE_URL/FIDO_HOST constant (and deriving origin from it) and using it for all fetches.

Copilot uses AI. Check for mistakes.
```

- `site`: The URL of your FIDO server (default: `https://fido.shore-tech.net`).
- `site`: The URL of your FIDO server (default: `https://debug.liquidauth.com`).
Copy link

Copilot AI Mar 26, 2026

Choose a reason for hiding this comment

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

The README now documents https://debug.liquidauth.com as the default site. If debug.* is not meant to be a long-term stable public endpoint, this could mislead users integrating the plugin. Consider updating the documented default to the intended production/stable base URL (or documenting that consumers should always set site explicitly).

Suggested change
- `site`: The URL of your FIDO server (default: `https://debug.liquidauth.com`).
- `site`: The URL of your FIDO server. This must be set explicitly for your deployment (no long-term stable default is provided).

Copilot uses AI. Check for mistakes.
@PhearZero PhearZero merged commit 9a77316 into main Mar 31, 2026
5 checks passed
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