pass token in Authorization header instead of i property
This commit is contained in:
parent
2acf7fa46d
commit
2d48387f49
5 changed files with 47 additions and 13 deletions
|
|
@ -56,11 +56,11 @@ export async function signout() {
|
|||
await window.fetch(`${apiUrl}/sw/unregister`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
i: $i.token,
|
||||
endpoint: push.endpoint,
|
||||
}),
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Authorization': `Bearer ${$i.token}`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue