feat: pass invite token through signup flow

This commit is contained in:
Tim
2025-08-17 12:11:13 +08:00
parent 2dd56e27af
commit e0df78deee
18 changed files with 63 additions and 29 deletions

View File

@@ -42,7 +42,7 @@ export async function twitterAuthorize(state = '') {
window.location.href = url
}
export async function twitterExchange(code, state, reason) {
export async function twitterExchange(code, inviteToken, reason) {
try {
const config = useRuntimeConfig()
const API_BASE_URL = config.public.apiBaseUrl
@@ -55,7 +55,7 @@ export async function twitterExchange(code, state, reason) {
code,
redirectUri: `${window.location.origin}/twitter-callback`,
reason,
state,
inviteToken,
codeVerifier,
}),
})