feat: add Space aggregate login
This commit is contained in:
@@ -69,3 +69,18 @@ export async function reportUserPasskeyClientError(payload) {
|
||||
const { data } = await publicApi.post('/user/passkeys/client-error', payload || {})
|
||||
return data
|
||||
}
|
||||
|
||||
export async function fetchSocialBindings() {
|
||||
const { data } = await publicApi.get('/user/social-bindings')
|
||||
return data
|
||||
}
|
||||
|
||||
export async function bindSocial(payload) {
|
||||
const { data } = await publicApi.post('/user/social-bindings', payload || {})
|
||||
return data
|
||||
}
|
||||
|
||||
export async function unbindSocial(provider) {
|
||||
const { data } = await publicApi.delete(`/user/social-bindings/${encodeURIComponent(provider)}`)
|
||||
return data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user