Authentication result parsing

This commit is contained in:
2023-05-29 18:32:13 -04:00
parent 0f019ebc34
commit 4a3136a766
7 changed files with 26 additions and 26 deletions

View File

@@ -30,8 +30,8 @@ export async function serverinfo(cid) {
})).json();
}
export async function userinfo(cid) {
return await (await fetch('/v1/vista/' + cid + '/userinfo', {
export async function authinfo(cid) {
return await (await fetch('/v1/vista/' + cid + '/authinfo', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: '{}'
@@ -47,5 +47,5 @@ export async function authenticate(cid, avcode=null) {
}
export default window.vista = {
connect, close, call, serverinfo, userinfo, authenticate
connect, close, call, serverinfo, authinfo, authenticate
};