Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const response = await fetch(loginUrl, {
- method: 'POST',
- headers: {
- 'Authorization': `Basic ${loginAuthString}`,
- 'Content-Type': 'application/json'
- },
- body: JSON.stringify({
- "username": username,
- "password": password
- })
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement