Usage of the SDK constitutes your agreement with the Matterport SDK Agreement. Email developers@matterport.com with any questions.
Hierarchy
- ITokenRefresher
Index
Methods
dispose
-
Shut down, stop refreshing, and clean up resources
Returns void
on
-
Listen for successful refreshes of the token
Parameters
-
event: "refresh"
The
'refresh'
event type -
callback: function
The callback to call on a refresh
-
-
Returns void
-
-
Returns ISubscription
-
-
Listen for errors when refreshing the token
Parameters
-
event: "error"
The
'error'
event type -
callback: function
The callback to call on error
-
-
Parameters
-
e: Error
Returns void
-
-
-
Returns ISubscription
-
-
Attach an observer that can listen for refresh or error events
Parameters
-
refreshObserver: OAuth.IRefreshObserver
Returns ISubscription
-
A helper to automatically refresh tokens