mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 12:39:17 +00:00
10 lines
362 B
JavaScript
10 lines
362 B
JavaScript
import { checkResponse, fetchWithTimeout } from './fetchUtil';
|
|
|
|
export async function setAccountAccess(token) {
|
|
let app = { Name: "indicom", Description: "decentralized communication" }
|
|
let access = await fetchWithTimeout(`/account/access?token=${token}`, { method: 'PUT', body: JSON.stringify(app) })
|
|
checkResponse(access)
|
|
return await access.json()
|
|
}
|
|
|