1. Authentication

Authentication

Check if HAT exists

Parameters

Type

hatDomain

string

Example:

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

Example:

hat.auth().signOut();

Get HAT domain

Example:

Get auth token

Example:

Check if token has expired

Example:

Generate HAT login URL

Example:

Last updated

Was this helpful?