mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
Use correct redeem flow
This commit is contained in:
parent
c0f4715bc8
commit
7388a02afd
@ -1,4 +1,4 @@
|
|||||||
VITE_OPEN_COLLECTIVE_API_KEY=your_key
|
VITE_OPEN_COLLECTIVE_API_KEY=your_key
|
||||||
VITE_API_URL=https://api.utopia-lab.org
|
VITE_API_URL=https://api.utopia-lab.org
|
||||||
VITE_VALIDATE_INVITE_FLOW_ID=01d61db0-25aa-4bfa-bc24-c6a8f208a455
|
VITE_VALIDATE_INVITE_FLOW_ID=01d61db0-25aa-4bfa-bc24-c6a8f208a455
|
||||||
VITE_REDEEM_INVITE_FLOW_ID=todo
|
VITE_REDEEM_INVITE_FLOW_ID=cc80ec73-ecf5-4789-bee5-1127fb1a6ed4
|
||||||
|
|||||||
@ -39,8 +39,7 @@ export class InviteApi {
|
|||||||
async redeemInvite(inviteId: string): Promise<string | null> {
|
async redeemInvite(inviteId: string): Promise<string | null> {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
// `${config.apiUrl}/flows/trigger/${config.redeemInviteFlowId}?secret=${inviteId}`,
|
`${config.apiUrl}/flows/trigger/${config.redeemInviteFlowId}?secret=${inviteId}`,
|
||||||
`${config.apiUrl}/flows/trigger/${config.validateInviteFlowId}?secret=${inviteId}`,
|
|
||||||
{
|
{
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
mode: 'cors',
|
mode: 'cors',
|
||||||
|
|||||||
@ -3,6 +3,8 @@ export const config = {
|
|||||||
validateInviteFlowId: String(
|
validateInviteFlowId: String(
|
||||||
import.meta.env.VITE_VALIDATE_INVITE_FLOW_ID ?? '01d61db0-25aa-4bfa-bc24-c6a8f208a455',
|
import.meta.env.VITE_VALIDATE_INVITE_FLOW_ID ?? '01d61db0-25aa-4bfa-bc24-c6a8f208a455',
|
||||||
),
|
),
|
||||||
redeemInviteFlowId: String(import.meta.env.VITE_REDEEM_INVITE_FLOW_ID ?? 'todo'),
|
redeemInviteFlowId: String(
|
||||||
|
import.meta.env.VITE_REDEEM_INVITE_FLOW_ID ?? 'cc80ec73-ecf5-4789-bee5-1127fb1a6ed4',
|
||||||
|
),
|
||||||
openCollectiveApiKey: String(import.meta.env.VITE_OPEN_COLLECTIVE_API_KEY ?? ''),
|
openCollectiveApiKey: String(import.meta.env.VITE_OPEN_COLLECTIVE_API_KEY ?? ''),
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user