-
Notifications
You must be signed in to change notification settings - Fork 0
fix: update service url #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -165,7 +165,7 @@ const withUserAgent = (config) => { | |||||||||||
| }; | ||||||||||||
|
|
||||||||||||
| const withPasskeyAutofill = (config, props = {}) => { | ||||||||||||
| const site = props.site || "https://fido.shore-tech.net"; | ||||||||||||
| const site = props.site || "https://debug.liquidauth.com"; | ||||||||||||
|
||||||||||||
| 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."); | |
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -92,7 +92,7 @@ function AppContent() { | |
| } | ||
|
|
||
| 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', | ||
|
Comment on lines
94
to
96
|
||
| headers: { 'Content-Type': 'application/json' }, | ||
| body: JSON.stringify({ | ||
|
|
@@ -109,7 +109,7 @@ function AppContent() { | |
| console.log(options) | ||
| const result = await Passkey.get(options); | ||
|
|
||
| const submitResponse = await fetch('https://fido.shore-tech.net/assertion/response', { | ||
| const submitResponse = await fetch('https://debug.liquidauth.com/assertion/response', { | ||
| method: 'POST', | ||
| headers: { 'Content-Type': 'application/json' }, | ||
| body: JSON.stringify(result), | ||
|
|
@@ -152,7 +152,7 @@ function AppContent() { | |
|
|
||
| await ReactNativePasskeyAutofill.setHdRootKeyId(ed25519Key.metadata.parentKeyId) | ||
|
|
||
| const response = await fetch('https://fido.shore-tech.net/attestation/request', { | ||
| const response = await fetch('https://debug.liquidauth.com/attestation/request', { | ||
| method: 'POST', | ||
| headers: { 'Content-Type': 'application/json' }, | ||
| body: JSON.stringify({ | ||
|
|
@@ -183,7 +183,7 @@ function AppContent() { | |
| ...result.clientExtensionResults, | ||
| liquid: { | ||
| requestId: 'example-session-' + Date.now(), | ||
| origin: 'fido.shore-tech.net', | ||
| origin: 'debug.liquidauth.com', | ||
| type: 'algorand', | ||
| address: encodeAddress(new Uint8Array(ed25519Key.publicKey)), | ||
| signature: toBase64URL(signature), | ||
|
|
@@ -192,7 +192,7 @@ function AppContent() { | |
| }; | ||
| } | ||
|
|
||
| const submitResponse = await fetch('https://fido.shore-tech.net/attestation/response', { | ||
| const submitResponse = await fetch('https://debug.liquidauth.com/attestation/response', { | ||
| method: 'POST', | ||
| headers: { 'Content-Type': 'application/json' }, | ||
| body: JSON.stringify(result), | ||
|
|
||
There was a problem hiding this comment.
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.comas the defaultsite. Ifdebug.*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 setsiteexplicitly).