performAction

abstract suspend fun performAction(context: Context, action: suspend (String?, String?) -> Unit)

Perform an action with fresh tokens. This method will perform the action with fresh tokens and save the updated token state in the data store. Developer can directly use this method perform an action with fresh tokens, without worrying about refreshing the tokens. If this action fails, it will throw an Exception.

Parameters

context

The Context instance.

action

The action to perform.