Point public EDUT ID surfaces to /secret/id status and activation routes
Some checks are pending
check / secretapi (push) Waiting to run
Some checks are pending
check / secretapi (push) Waiting to run
This commit is contained in:
parent
b9ca98e13f
commit
20e68c4dff
@ -98,7 +98,7 @@ async function fetchMembershipStatus(wallet, chainId) {
|
||||
if (chainId !== null && chainId !== undefined) {
|
||||
params.set('chain_id', String(chainId));
|
||||
}
|
||||
const res = await fetch('/secret/membership/status?' + params.toString(), {
|
||||
const res = await fetch('/secret/id/status?' + params.toString(), {
|
||||
headers: { Accept: 'application/json' },
|
||||
});
|
||||
if (!res.ok) {
|
||||
|
||||
@ -98,7 +98,7 @@ async function fetchMembershipStatus(wallet, chainId) {
|
||||
if (chainId !== null && chainId !== undefined) {
|
||||
params.set('chain_id', String(chainId));
|
||||
}
|
||||
const res = await fetch('/secret/membership/status?' + params.toString(), {
|
||||
const res = await fetch('/secret/id/status?' + params.toString(), {
|
||||
headers: { Accept: 'application/json' },
|
||||
});
|
||||
if (!res.ok) {
|
||||
|
||||
@ -98,7 +98,7 @@ async function fetchMembershipStatus(wallet, chainId) {
|
||||
if (chainId !== null && chainId !== undefined) {
|
||||
params.set('chain_id', String(chainId));
|
||||
}
|
||||
const res = await fetch('/secret/membership/status?' + params.toString(), {
|
||||
const res = await fetch('/secret/id/status?' + params.toString(), {
|
||||
headers: { Accept: 'application/json' },
|
||||
});
|
||||
if (!res.ok) {
|
||||
|
||||
@ -885,7 +885,7 @@ async function startWalletFlow() {
|
||||
flowState.sessionWallet = address;
|
||||
|
||||
setFlowStatus('membership_quoting', 'Preparing EDUT ID activation...', false);
|
||||
const quote = await postJSON('/secret/membership/quote', {
|
||||
const quote = await postJSON('/secret/id/quote', {
|
||||
designation_code: verification.designation_code || intent.designation_code || null,
|
||||
address,
|
||||
chain_id: chainId,
|
||||
@ -916,7 +916,7 @@ async function startWalletFlow() {
|
||||
});
|
||||
|
||||
setFlowStatus('membership_confirming', 'Confirming EDUT ID on-chain...', false);
|
||||
const confirmation = await postJSON('/secret/membership/confirm', {
|
||||
const confirmation = await postJSON('/secret/id/confirm', {
|
||||
designation_code: verification.designation_code || intent.designation_code || null,
|
||||
quote_id: quote.quote_id || null,
|
||||
tx_hash: txHash,
|
||||
|
||||
@ -633,7 +633,7 @@
|
||||
throw new Error('Connect wallet first.');
|
||||
}
|
||||
|
||||
const walletUrl = '/secret/membership/status?wallet=' + encodeURIComponent(state.wallet);
|
||||
const walletUrl = '/secret/id/status?wallet=' + encodeURIComponent(state.wallet);
|
||||
try {
|
||||
const payload = await fetchJson(walletUrl);
|
||||
return normalizeMembership(payload.status || payload.membership_status);
|
||||
@ -642,7 +642,7 @@
|
||||
if (!designationCode) {
|
||||
throw walletErr;
|
||||
}
|
||||
const codeUrl = '/secret/membership/status?designation_code=' + encodeURIComponent(designationCode);
|
||||
const codeUrl = '/secret/id/status?designation_code=' + encodeURIComponent(designationCode);
|
||||
const payload = await fetchJson(codeUrl);
|
||||
return normalizeMembership(payload.status || payload.membership_status);
|
||||
}
|
||||
|
||||
@ -122,8 +122,8 @@
|
||||
<p class="line">/secret/wallet/verify</p>
|
||||
<p class="line">/secret/wallet/session/refresh</p>
|
||||
<p class="line">/secret/wallet/session/revoke</p>
|
||||
<p class="line">/secret/membership/quote</p>
|
||||
<p class="line">/secret/membership/confirm</p>
|
||||
<p class="line">/secret/id/quote</p>
|
||||
<p class="line">/secret/id/confirm</p>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user