getCredentials

abstract fun getCredentials(): Any?

This method is designed for internal OMH libraries first and foremost. In case you need to access the account credentials yourself, do it with care, as you will have to cast it into the appropriate class. Read below to see what classes the returned object can be cast safely.

Return

the credential object associated with the specific implementation of the API.

For GMS this returns a GoogleAccountCredential object to allow other libraries, like Drive, to authenticate their requests.

For non GMS this returns the a OmhCredentials object that allows you to access and refresh the access token using REST operations.