Files
classroomio/src/lib/utils/functions/api.js
T

9 lines
258 B
JavaScript
Raw Normal View History

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',
body: JSON.stringify({ event, session }),
});
}