Dolphin MOVE SDK
SDK
1.x
1.x
  • Introduction
  • MOVE Services
  • MOVE SDK
    • Getting Started
      • MOVE Dashboard
      • Android
        • Installation
        • Quick Start
      • iOS
        • Installation
        • Quick Start
      • React Native
    • API Interface
      • Android
        • Initialization
        • Services
      • iOS
        • Initialization
        • Services
      • React Native
        • Initialization
        • Services
    • Models
      • MoveAuth
      • MoveConfig
      • MoveConfigurationError
      • MoveDeviceStatus
      • MoveSDKState
      • MoveTripState
      • MoveAuthState
      • Listeners/Callbacks
    • Appendix
      • Android
        • Token refresh
        • Permission Handling
        • Battery optimization
        • Notification Management
      • iOS
        • Permissions Handling
        • App Store
  • MOVE Backend
    • MOVE Timeline
    • MOVE State
    • MOVE Last Location
    • MOVE Generic Notifier
    • Open Api Specification
  • Changelog
    • Android
    • iOS
  • Data privacy (GDPR)
Powered by GitBook
On this page
  1. MOVE SDK
  2. Models

MoveAuth

PreviousModelsNextMoveConfig

Last updated 3 years ago

The object is used to validate the usage of the SDK and configure its services according to that product's specifications.

MoveAuth {
    productID: Long
    contractId: String
    accessToken: String
    refreshToken: String    
}
struct MoveAuth {
    var userToken: String
    var refreshToken: String
    var contractID: String
    var productID: Int
}
export type RnDolphinAuth = {
  productId: number,
  contractId: string,
  accessToken: string,
  refreshToken: string,
};

MoveAuth

userToken

String

User's session-based access token.

refreshToken

String

User's session-based refresh token.

contractID

String

User's contract id.

productID

String

Client's product id.

Authentication Expiry

The host app is expected to monitor updates viaauthStateChangeListener(Android / ) API and handle those changes accordingly.

Check for more details.

MoveAuth related APIs

setAuthStateChangeListener() (Android / )

Block to be invoked every time SDK changes.

getAuthState()(Android / )

Gets the current .

MoveAuthState
MoveAuthState
MoveAuth
MoveAuthState
Authentication updates and expiry
iOS
iOS
iOS