Skip to content

Implement UpstoxAuthService

Rishabh Joshi edited this page Oct 25, 2018 · 1 revision

To ensure that Riko always has access to the latest version of the API credentials and authentication token, you'll need to implement the UpstoxAuthService interface. This is required for Riko to function correctly.

public class UpstoxAuthServiceImpl implements UpstoxAuthService {

    @Override
    public ApiCredentials getApiCredentials() {
        // Return the latest ApiCredentials object here
    }

    @Override
    public AccessToken getAccessToken() {
        // Return the latest AccessToken object here
    }
}
Clone this wiki locally