Cierre de sesión del SDK
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);
}fun logout(d1Task: D1Task) {
val callback: D1Task.Callback<Void?> = object : D1Task.Callback<Void?> {
override fun onSuccess(ignore: Void?) {
// Proceed with subsequent flows
}
override fun onError(exception: D1Exception) {
// 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.
Última actualización
¿Te fue útil?