Authentication result parsing
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
Reference in New Issue
Block a user