✨ User sign in
This commit is contained in:
@@ -43,7 +43,7 @@ async function deletePost() {
|
||||
loading.value = true
|
||||
const res = await request("interactive", url, {
|
||||
method: "DELETE",
|
||||
headers: { Authorization: `Bearer ${getAtk()}` }
|
||||
headers: { Authorization: `Bearer ${await getAtk()}` }
|
||||
})
|
||||
if (res.status !== 200) {
|
||||
error.value = await res.text()
|
||||
|
@@ -63,7 +63,7 @@ async function submit(evt: SubmitEvent) {
|
||||
loading.value = true
|
||||
const res = await request("interactive", url, {
|
||||
method: method,
|
||||
headers: { "Content-Type": "application/json", Authorization: `Bearer ${getAtk()}` },
|
||||
headers: { "Content-Type": "application/json", Authorization: `Bearer ${await getAtk()}` },
|
||||
body: JSON.stringify(payload)
|
||||
})
|
||||
if (res.status !== 200) {
|
||||
|
@@ -38,7 +38,7 @@ async function inviteMember(evt: SubmitEvent) {
|
||||
loading.value = true
|
||||
const res = await request("interactive", `/api/realms/${props.item?.id}/invite`, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json", Authorization: `Bearer ${getAtk()}` },
|
||||
headers: { "Content-Type": "application/json", Authorization: `Bearer ${await getAtk()}` },
|
||||
body: JSON.stringify({
|
||||
account_name: targetName.value
|
||||
})
|
||||
|
@@ -97,7 +97,7 @@ async function kickMember(item: any) {
|
||||
loading.value = true
|
||||
const res = await request("interactive", `/api/realms/${props.item?.id}/kick`, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json", Authorization: `Bearer ${getAtk()}` },
|
||||
headers: { "Content-Type": "application/json", Authorization: `Bearer ${await getAtk()}` },
|
||||
body: JSON.stringify({
|
||||
account_name: item.account.name
|
||||
})
|
||||
|
Reference in New Issue
Block a user