Files
AstralRinth/apps/app-frontend/src/helpers/mr_auth.js
Geometrically 47b0ccdf78 Friends system for app (#2958)
* Friends system for app

* Fix impl issues

* move friends to in-memory store
2024-11-26 18:23:29 -07:00

19 lines
541 B
JavaScript

/**
* All theseus API calls return serialized values (both return values and errors);
* So, for example, addDefaultInstance creates a blank Profile object, where the Rust struct is serialized,
* and deserialized into a usable JS object.
*/
import { invoke } from '@tauri-apps/api/core'
export async function login() {
return await invoke('plugin:mr-auth|modrinth_login')
}
export async function logout() {
return await invoke('plugin:mr-auth|logout')
}
export async function get() {
return await invoke('plugin:mr-auth|get')
}