Welcome to our new developer portal! Use the "Ask" button to chat with our AI Agent.

SDK logout

Overview

This section provides the logout step that revokes tokens pertaining to the D1 session associated with the specific D1Task and its corresponding issuerId. This API should be executed prior to logging out of the issuer application.

public void logout(@NonNull D1Task d1Task) {
    D1Task.Callback<Void> callback = new D1Task.Callback<Void>() {
        @Override
        public void onSuccess(Void ignore) {
            // Proceed with subsequent flows
        }

        @Override
        public void onError(D1Exception exception) {
            // Refer to D1 SDK Integration – Error Management section
        }
    };
    d1Task.logout(callback);
}

SDK logout all

This section provides the logout step that revokes all tokens for all D1Task. This API should be executed prior to logging out of the issuer application.

Last updated

Was this helpful?