fixing login with reset token

This commit is contained in:
balzack 2022-12-28 15:31:54 -08:00
parent b973de5620
commit 67f905ddd4

View File

@ -1,6 +1,6 @@
import { checkResponse, fetchWithTimeout } from './fetchUtil';
export async function setAccountAccess(server, token, appName, appVersion, platofrm, notifications) {
export async function setAccountAccess(server, token, appName, appVersion, platform, deviceToken, notifications) {
let access = await fetchWithTimeout(`https://${server}/account/access?token=${token}&appName=${appName}&appVersion=${appVersion}&platform=${platform}&deviceToken=${deviceToken}`, { method: 'PUT', body: JSON.stringify(notifications) })
checkResponse(access)
return await access.json()