Current authentication token
Check token expiry.
Refresh the current auth token if the token will expire within the next 15 mins, or the remaining validity period is below 1/3 of the original duration.
This is used internally for all REST calls: As long as 3 requests are made within the original validity period of the token being issued, the authentication token will always remain active.
If the token does expire, users will have be re-authenticated using the oboarding authentication flow, provided by Auth.login.
Authenticate against the REST API using your account email + password This is the only time a user's email + password are required for authentication. The Auth.refresh method can be used to ensure the auth token is perpetually active.
Refresh authentication token. Current token(s) must still be active and not expired.
Generated using TypeDoc
Authentication API.
Centralises storage and mangement of authentication to Hivehome's REST API.