2021-07-31 23:06:14 +03:00
|
|
|
export async function handleAuthChange(event, session) {
|
|
|
|
|
await fetch('/api/auth', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
headers: new Headers({ 'Content-Type': 'application/json' }),
|
|
|
|
|
credentials: 'same-origin',
|
2023-11-25 21:56:02 +00:00
|
|
|
body: JSON.stringify({ event, session })
|
2021-07-31 23:06:14 +03:00
|
|
|
});
|
|
|
|
|
}
|