[refactor] account uuid
This commit is contained in:
@@ -5,6 +5,7 @@ import localforage from "localforage"
|
||||
import { alertLogin, alertStore } from "../alert"
|
||||
import { forageStorage, getUnpargeables, replaceDbResources } from "./globalApi"
|
||||
import { encodeRisuSave } from "./risuSave"
|
||||
import { v4 } from "uuid"
|
||||
|
||||
export class AccountStorage{
|
||||
auth:string
|
||||
@@ -46,7 +47,7 @@ export class AccountStorage{
|
||||
}
|
||||
let da:Response
|
||||
while((!da) || da.status === 403){
|
||||
da = await fetch(hubURL + '/api/account/read/' + Buffer.from(key ,'utf-8').toString('hex'), {
|
||||
da = await fetch(hubURL + '/api/account/read/' + Buffer.from(key ,'utf-8').toString('hex') + '|' + v4(), {
|
||||
method: "GET",
|
||||
headers: {
|
||||
'x-risu-key': key,
|
||||
|
||||
Reference in New Issue
Block a user