π Authentication
Authentication Process
Example Authentication
// JavaScript example
const credentials = btoa('your_widget_id:your_backend_secret')
const headers = {
Authorization: `Basic ${credentials}`,
'Content-Type': 'application/json'
}# Python example
import base64
import requests
credentials = base64.b64encode('widget_id:backend_secret'.encode()).decode()
headers = {
'Authorization': f'Basic {credentials}',
'Content-Type': 'application/json'
}Last updated