1. Authentication
Authentication
Check if HAT exists
const hatDomain = "testing.hubat.net";
try {
const res = hat.auth().isDomainRegistered(hatDomain);
if (res) {
// HAT domain is registered
}
} catch (e) {
// HAT domain doesn't exist
}Sign out
hat.auth().signOut();Get HAT domain
Get auth token
Check if token has expired
Generate HAT login URL
Last updated
Was this helpful?